I have written a module for Drupal 6 that back-ports some of the cool accessibility improvements that are found in the Drupal 7 roles/permissions system. Specifically, these 2 features (for the moment) are:
- ordering of Roles on a "role order" page is reflected in the column ordering of the permissions page
- checking the "authenticated user" checkbox for any permissions makes it appear that all further roles have that permission checked as well (to describe the actual Drupal behavior to the user)
These UI enhancements are very helpful for sites with long lists of permissions and many Roles. For example, this list of roles is ordered alphabetically and can be very difficult to manage:
anonymous
authenticated
administrator
editor
moderator
semi-authenticated (for use with the LoginTobogan module)
Using this module, you could order these roles like this on the permissions page:
anonymous
semi-authenticated
authenticated
moderator
editor
administrator
You can view an example of the module here: http://sandbox.csdesignco.com/?q=admin/user/d7permissions
(username: drupal, password: drupal)
You can download the current version of this module from my CVS application page here: http://drupal.org/node/1020838
The module requires jQuery Update module version 6.x-2.x.
I assume this is a useful feature as I find it very handy on many sites and it has been programmed into Drupal 7 core. I hope to get any feedback here for both coding issues within the module itself and whether this module would be useful to the community.
Thanks!
Comments
Would anyone be willing to
Would anyone be willing to just hit the link and post your thoughts?
http://sandbox.csdesignco.com/?q=admin/user/d7permissions
(username: drupal, password: drupal)
Get the Word Out
If you can get the word out, I have to imagine this is sorely needed. I had to dig to find this, however. Have you posted in the LoginTobogan Issues area? We need this sort of functionality for the sole reason that we are using that mod and the pre-authentication feature is useless without a mod like yours (or php skills and the time to do your own mod).
I use the module on many
I use the module on many sites, and it works quite well. It uses logic pulled from the standard D6 permissions page and the added jQuery from D7 so it's pretty lean and well tested in theory. I'd love for others to be able to use it. The problem, as you point out, is how the heck would anyone even know how to search for it.
I posted a CVS account request on January 10th but have not had luck in getting it accepted. The CVS request queue has over 400 open issues so I don't know what to expect.
Perhaps this module could be rolled into LoginToboggan... I will post a note there.
Posted in the LoginToboggan
Posted in the LoginToboggan issue queue: http://drupal.org/node/1070910
The module now has it's own
The module now has it's own official page: http://drupal.org/project/d7permissions