Closed (works as designed)
Project:
Block Content Permissions
Version:
8.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Sep 2018 at 11:23 UTC
Updated:
13 Apr 2019 at 16:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gaurav_drupalAttaching the patch for granular permissions for blocks.
Comment #3
gaurav_drupalComment #4
gaurav_drupalComment #5
joshua.roberson commentedMy main concern is that, to my knowledge, there is no way to manage block content revisions through the UI yet. You can create a new revision, but not manage them. The future of this functionality for block content is uncertain.
https://www.drupal.org/project/drupal/issues/1984588
My other concern is that this patch adds the revision user id to block content going forward, so older block content won't have a revision user id for non admins. This feature will only work for block content created after this patch. If someone were to install this patch and switch their roles from "edit/delete all" to "edit/delete own", the affected users won't be able to modify any block content that they may have created.
I had to modify the patch to get it to work. Give it a try and see if it works for you.
There is one major flaw I found. If one user creates block content and another user edits it while selecting "Create new revision", the original creator won't be able to modify it anymore if they only have "edit/delete own" permissions. The new revision in the "block_content_revision" table has the "revision_user" set to the second user. I would expect "edit/delete own" to allow you to modify content you created for the life of your content.
Comment #6
josephdpurcell commentedModifying title to clarify the difference of this ticket with: #3045948
Comment #7
joshua.roberson commentedGiven there will be issues mentioned in #5 and there are no plans to add the "edit own" and "delete own" permissions to core (https://www.drupal.org/node/1975064), I am going to close this issue as "works as designed".