The attached patch does two big things.
1) Checks the boxes on the User Permissions page granted to a user by roles that user_permissions does not manage
2) Disables them
This makes it clear which permissions can/cannot be managed from that page. I believe there are several issues in the queue here related to people trying to revoke access to something for a user using this page, and confused by the fact that it's a different role granting the permission that user.
It also does a third minor one - On admin/people, it replaces the string "_user_role_$uid" with "(custom permissions)". This is a minor user-interface change to finish hiding the custom roles user_permissions generates, while still letting the admin know that a user's access is customized.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | user_permissions-improve-permissions-display-on-user-tab-1367284-1.patch | 1.34 KB | b-prod |
| disable_boxes.patch | 1.32 KB | threewestwinds |
Comments
Comment #1
b-prod commentedThanks for your patch.
The second part of your patch is deprecated, but the first part is interesting. I modified it a little.
Comment #2
b-prod commented