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
Improve role/capability handling in usermanager #19388
Conversation
plugins/UsersManager/vue/src/UserPermissionsEdit/UserPermissionsEdit.vue
Show resolved
Hide resolved
998905a
to
4b9c9ec
Compare
This one should be ready for review now. I've already tried to explain some of the changes in some comments above. Hope that makes it easier to understand everything. |
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've done some before and after functional testing, including trying to add capabilities for a no access user and view access user via bulk actions, checking that the capabilities UI is only shown on user editing if the user has site access and checking the paged user list. Also read through the code, including the bulk request handling improvements. The comments were helpful, thanks. 👍 I haven't found any issues so this looks good to merge 🙂
Adding a capability wouldn't work there anyway
Description:
While trying to fix #18750 a couple of other issue within the UserManager popped up. Guess some of them might have regressed during the vue migration.
Note: This PR also adds a proper handling of bulk requests to AjaxHandler. This is e.g. important when setting a role/capability for multiple users at once. The requests are sent as bulk. Currently it would not show any error if some of the requests failed.
fixes #18750
Review