Closed (fixed)
Project:
Custom Permissions
Version:
8.x-2.x-dev
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2018 at 07:56 UTC
Updated:
12 Mar 2019 at 13:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
candelas commentedpatch
Comment #3
mlncn commentedYup, just noticed this issue.
It's a little ironic since a main motivation of Custom Permissions is to make permissions more fine-grained... but yeah 'administer permissions' is the correct permission here not 'access content'!
Comment #4
mohammed j. razemI'm suggesting to add more granular permission to "Administer custom permissions" which can be provided by default from the module itself.
See related issue here: #3035483: Update [Custom Permissions] module from 2.0-beta1 (~2.0) to 2.0-beta2 (~2.0) .
Of course along with the provided patch here.
Comment #5
mohammed j. razemMaking this critical since it imposes some security implications.
Comment #6
gnugetHi!
I just added one new permission to administer the module and added a hook_update to give this new permission to the roles that already were able to administer the module and a test.
Patch attached.
Comment #7
mohammed j. razemThanks @gnuget for the quick action on this.
Allow me to add a couple of reviews on the patch:
I believe checking if the role had "administer permissions" makes more sense.
As "administer site configuration" is unrelated to managing permissions.
Even though the module machine name is config_perms, the human readable name is "Custom Permissions".
I think this will create confusion and I suggest renaming it to "Administer custom permissions" instead.
Comment #8
gnugetHi @mohammed.
The
administer site configurationwas the permission used in theCustomPermsentity.php.(yup, it was poorly selected glad that we are going to fix it in this issue) you can see that here:Thank you for the review.
Comment #9
mohammed j. razemGreat! I think we can mark as RTBC now.
Thanks for your work on this!
Comment #11
gnugetYay, fixed!
Comment #12
mohammed j. razem