Issue #3283810: Added permission access to pathauto checkbox
3 unresolved threads
Closes #3283810
Merge request reports
Activity
added 1 commit
- 8b98c1f2 - Fixes errors on MR and adds a test to check button visibility to user without...
added 18 commits
-
8b98c1f2...246321c7 - 16 commits from branch
project:8.x-1.x
- add62ca7 - Issue #3283810: Added permission access to pathauto checkbox
- 3647ea31 - Fixes errors on MR and adds a test to check button visibility to user without...
-
8b98c1f2...246321c7 - 16 commits from branch
61 61 '#default_value' => $entity->path->pathauto, 62 62 '#description' => $description, 63 63 '#weight' => -1, 64 '#disabled' => !(\Drupal::currentUser()->hasPermission('update content state pathauto')), this will need an update function to grant this permission to basically anyone I guess, possibly also need to consider a hook install or if not that then at least documentation updates that granting this permission is now basically required for most use cases.
Or a setting to respect the permission that is off by default.
The weight and implications means I'm really not sure if this should be part of this project. If you have this use case then it is easy enough to add in an alter, could be a separate module doing it too.
Please register or sign in to reply