Skip to content

feat!: add dedicated permission for config page

Pandu Supriyono requested to merge feature/administer-uncinc-default-pages into master

Problem

The config edit page (/admin/config/uncinc-default-pages/edit) was using translate interface as its access permission. This is a core Drupal permission meant for the translation system and has nothing to do with managing default pages. This caused two issues:

  • Any user with translate interface could access the default pages config, even if that wasn't intended
  • There was no way to grant access to the default pages config without also implying translation rights

Solution

  • Add a new administer uncinc default pages permission owned by this module
  • Use it on the config edit route instead of translate interface

After updating, assign the new administer uncinc default pages permission to any roles that need access to the config page. The old translate interface permission will no longer grant access.

Edited by Pandu Supriyono

Merge request reports

Loading