Skip to content
Snippets Groups Projects
Commit e653f9cd authored by Liam Morland's avatar Liam Morland
Browse files

Revert "ISTWCMS-4632: Create permission 'administer role expire configuration'"

This reverts commit b14310cd.
parent d571368c
No related branches found
No related tags found
No related merge requests found
......@@ -55,11 +55,6 @@ class UwNodeAccessCheck implements AccessInterface {
}
}
// Role Expire config: admin/config/system/role-expire.
if ($route_name === 'role_expire.config') {
return $account->hasPermission('administer role expire configuration') ? AccessResult::allowed() : AccessResult::forbidden();
}
// Dashboard config: admin/config/dashboards/dashboardssettings.
if ($route_name === 'dashboards.dashboards_settings_form') {
return $account->hasPermission('access dashboard config') ? AccessResult::allowed() : AccessResult::forbidden();
......
......@@ -24,8 +24,6 @@ class UwNodeAccessRouteSubscriber extends RouteSubscriberBase {
'entity.node.delete_form',
// Menu link edit pages.
'menu_ui.link_edit',
// Role Expire config: admin/config/system/role-expire.
'role_expire.config',
];
foreach ($access_route_names as $route_name) {
if ($route = $collection->get($route_name)) {
......
......@@ -4,10 +4,6 @@
'access dashboard config':
title: 'Access dashboard configuration'
description: 'Allows access to admin/config/dashboards/dashboardssettings.'
'administer role expire configuration':
title: 'Administer role expire configuration'
description: 'Allows access to admin/config/system/role-expire.'
restrict access: true
'access manage toolbar item':
title: 'Access "Manage" toolbar item'
description: 'Allows access to the toolbar item "Manage". Without this, "People" and "Reports" will appear under "Workbench" to those who have access.'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment