I added #checkall => true for the /admin/user/permissions and it doesn't appear to work. The check/uncheck options are showing up at the bottom of the page but don't do anything. I checked that the .js and .css are in the source. I'm not sure how to debug.

CommentFileSizeAuthor
checkall-user-perms-screenshot.png21.82 KBkristen pol

Comments

markus_petrux’s picture

Status: Active » Closed (won't fix)

I think this is beyond the scope of this module which is merely a solution for checkboxes elements that are rendered as a whole.

The user permissions panel contains a checkboxes element for each role, but then each checkbox is rendered individually in the theme function.

To add a check/uncheck all effect to this panel, it would have been done with the provided tableSelect behavior in Drupal core, but I guess it was not done because permissions need to be assigned with care.

I believe there's a contrib module that allows you to assign all permissions by default to one particular role, that would be a super admin kind.