I had this idea running through my head and I thought I would share it. My idea is to create a role hierarchy, where roles can be added similar to how nodes are classified with taxonomy terms. An example could be:

Root Admin
---Admin
-----Moderator
--------Publisher
----------Editor
------------Registered/Authenticated
---------------Guest

Doing so can add a way for the drupal to test the permissions and spit out errors like: Authenticated user has access to 'administer nodes'. Do you want this?

It could also help with helping set sensible defaults for permissions. Selecting 'edit own content' for Publisher could allow drupal to set it for all roles higher than publisher.

My only grip with this would be that admins should never be forced to NOT allow something to happen. If they want to give 'administer nodes' permissions to registered users, they should be free to do that (I just don't think it is very smart). The permissions checking should be passive and not restraining. Just notifying the admin should help them locate permission errors.

Comments

mdupont’s picture

Version: 7.x-dev » 8.x-dev
Status: Active » Closed (duplicate)