Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently we use validation to prevent assigning sensitive perms to anonymous or authenticated users. This works, but it would seem preferable to disable the checkboxes in the first place.
Proposed resolution
- Set
'#disabled'
toTRUE
on the checkboxes and set value to FALSE. - Remove the validation code.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#4 | paranoia-anon-auth-perms-2894993-4.patch | 2.45 KB | nedjo |
Comments
Comment #2
nedjoComment #3
nedjoBetter UX to disable rather than remove.
Comment #4
nedjoHere's a patch that requires the patch on #2894995: Remove permissions rather than suppressing their checkboxes. Postponing until that's applied.
Comment #5
nedjo#2894995 was applied so this is ready for review.
Comment #7
nedjo