The idea is that there must be a permission to administer Custom Permissions module itself.

File name: config_perms.custom_perms_entity.administer_custom_permissions.yml

File content:

status: true
dependencies: {  }
id: administer_custom_permissions
label: 'Administer custom permissions'
route: "entity.custom_perms_entity.clone_form\r\nentity.custom_perms_entity.delete_form\r\ncustom_perms_select_list_form"

After we do that, it's work to submit this as a patch to the Custom Permissions module.
See #3003960: Change Custom Permissions List permission to administer permissions
and #3003953: How to hide Custom Permissions tab on People page

CommentFileSizeAuthor
#3 custom_perms---varbase860.png344.67 KBRajab Natshah
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mohammed J. Razem created an issue. See original summary.

Mohammed J. Razem’s picture

Title: Strengthen permissions of Custom Permissions module » Update Custom Permissions module

I think no need for the original proposal in this ticket.

We just need to update to Custom Permissions 8.x-2.0-beta2

Rajab Natshah’s picture

Issue summary: View changes
FileSize
344.67 KB

Tested it, and it works after the update and drush updb

composer update drupal/config_perms
drush updb

config perms update

Rajab Natshah’s picture

Title: Update Custom Permissions module » Update [Custom Permissions] module from 2.0-beta1 (~2.0) to 2.0-beta2 (~2.0)

Rajab Natshah’s picture

Assigned: Unassigned » Mohammed J. Razem
Status: Active » Needs review
Issue tags: +varbase-8.6.6
Rajab Natshah’s picture

Assigned: Mohammed J. Razem » Unassigned

In varbase_core composer.json we are calling

"drupal/config_perms": "~2.0",

so we can do the following to update

composer update drupal/config_perms
drush updb
Rajab Natshah’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.