Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292540

Add more granular block permissions

$
0
0

Problem/Motivation

The block system has but one permission: "Administer blocks", creating an all-or-none situation where granting a user any permission to the subsystem entails giving them god powers there. Especially now that we have custom blocks, I expect people will want more of the flexibility they currently have with nodes to restrict access to different operations by bundle. I know I have for a long time!

Proposed resolution

I propose adding more granular permissions. Update block's permissions as compared to node's:

NodeBlock
Bypass content access controlx
Administer content typesAdminister block types
Administer contentAdminister blocks
Access the Content overview pageAccess the Custom block library page
View published contentx
View own unpublished contentx
View all revisionsx
Revert all revisionsx
Delete all revisionsx
Per type: Create new contentPer type: Create new blocks
Per type: Edit own contentx
Per type: Edit any contentPer type: Edit any blocks
Per type: Delete own contentx
Per type: Delete any contentPer type: Delete any blocks
Per type: View revisionsx
Per type: Revert revisionsx
Per type: Delete revisionsx

Marking the above items as 'x' (or deferred to separate issue) because:

Remaining tasks

  • Decide if and what permissions to add.
  • Write a patch.
  • Add tests.
  • Review and commit.
  • Write a change notice.

User interface changes

TBD.

API changes

TBD.


Viewing all articles
Browse latest Browse all 292540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>