-
Notifications
You must be signed in to change notification settings - Fork 2
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
Lister Pro interferes with viewable users when user-admin-[role] permission is assigned #938
Comments
@Toutouwai I had a closer look at this, and I think you are right that ListerPro shouldn't override that initSelector. But I also want to clarify that the purpose of the |
@ryancramerdesign, I know about the need to install the user-admin-all permission and not to assign it to administrators who may not edit users with all roles. I didn't mention it in the issue description but those steps were done when producing the screenshots that illustrate the issue. Not sure I quite understand the part where you say...
...because it looks like the purpose of the code in ProcessUser that I linked to in the first sentence is to use the user-admin-* roles to limit the visibility of users that the administrator does not have permission to edit. That seems like quite an important thing because:
I noticed some installable user-view-* permissions but I couldn't see that ProcessUser checks for those when determining what user information to reveal. |
Sorry to hijack a bit, but @ryancramerdesign if you do start looking into the user-view-* permissions that @Toutouwai mentions at the end, could you also please take a look at: #1455 I know it's only related to alt template / parent users, but it is another situation where the user view permissions are problematic. Thank you! |
Short description of the issue
This section of ProcessUser is supposed to limit the users that are listed at Access > Users for those who have been assigned a user-admin-[role] permission. They are only supposed to be able to see users with the role they have been given the user-admin permission for.
Example if user-admin-editor is given to a role:
But if ListerPro is installed and the "Config" page for the Users lister has ever been saved (even if no customisations have been made) then ListerPro forces the
initSelector
setting for the Users lister, overriding the limitedinitSelector
that was set by ProcessUser. This reveals users that a person with the user-admin-[role] permission shouldn't be able to see.Same example as above, but the ListerPro config page has been saved for the Users lister:
Setup/Environment
The text was updated successfully, but these errors were encountered: