-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin users don't see all users but can now "Give an existing user view access" by entering the username #9379
Conversation
*/ | ||
public function checkUserHasSomeAdminAccess() | ||
public function isUserHasSomeAdminAccess() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it to this class for easier injecting of dependencies and easier testing. Added tests for this method... this is what we should use in the future anyway instead of Piwik::check...
or Piwik::is...
Revert "Fixes visitor map height calculation bug"
Don't let "admin" users see all other users in Piwik
I couldn't find anything to feedback, this is a wonderful PR! and 👍 all the new test cases! |
fixes #4314
I didn't name it "Invite user" since this would imply that the user has to confirm/approve the invitation. Therefore named it "Give view access".
In the user manager, for a user having admin access, we show only users that have view or admin access to the selected site. If all sites are selected, we show all users the current user is allowed to see.