diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 142519733..f8e472b6c 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -1525,7 +1525,7 @@ public function providePermissions() $perms = [ "CMS_ACCESS_LeftAndMain" => [ 'name' => _t(__CLASS__ . '.ACCESSALLINTERFACES', 'Access to all CMS sections'), - 'category' => _t(Permission::class . '.CMS_ACCESS_CATEGORY', 'CMS Access'), + 'category' => _t(__CLASS__ . '.CMS_ACCESS_CATEGORY', 'CMS Access'), 'help' => _t(__CLASS__ . '.ACCESSALLINTERFACESHELP', 'Overrules more specific access settings.'), 'sort' => -100 ] @@ -1557,11 +1557,11 @@ public function providePermissions() $perms[$code] = [ // Item in permission selection identifying the admin section. Example: Access to 'Files & Images' 'name' => _t( - CMSMain::class . '.ACCESS', + __CLASS__ . '.ACCESS', "Access to '{title}' section", ['title' => $title] ), - 'category' => _t(Permission::class . '.CMS_ACCESS_CATEGORY', 'CMS Access') + 'category' => _t(__CLASS__ . '.CMS_ACCESS_CATEGORY', 'CMS Access') ]; } diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index 561f282e0..97f3ed216 100755 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -141,11 +141,11 @@ public function providePermissions() return [ "CMS_ACCESS_SecurityAdmin" => [ 'name' => _t( - CMSMain::class . '.ACCESS', + LeftAndMain::class . '.ACCESS', "Access to '{title}' section", ['title' => $title] ), - 'category' => _t(Permission::class . '.CMS_ACCESS_CATEGORY', 'CMS Access'), + 'category' => _t(LeftAndMain::class . '.CMS_ACCESS_CATEGORY', 'CMS Access'), 'help' => _t( __CLASS__ . '.ACCESS_HELP', 'Allow viewing, adding and editing users, as well as assigning permissions and roles to them.'