Quantcast
Viewing all articles
Browse latest Browse all 293522

Resolve usage of 'view content' permission in modules other than Node

Follow up for #1871772-108: Convert custom blocks to content entities

Problem/Motivation

+++ b/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockAccessController.php
@@ -0,0 +1,47 @@
+ public function viewAccess(EntityInterface $entity, $langcode = LANGUAGE_DEFAULT, User $account = NULL) {
+ return user_access('view content', $account);
Hm. That user permission belongs to Node module.

We definitely need a (major) follow-up issue for that.

Custom block module re-uses 'view content' permission which is from node module.
We need to have a discussion about whether we want a new 'view blocks' permission.

Proposed resolution

Determine if 'view blocks' permission is warranted and implement as required.

Remaining tasks

Determine if 'view blocks' permission is warranted and implement as required.

User interface changes

New permission?


Viewing all articles
Browse latest Browse all 293522

Trending Articles



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