From 2cd9f7fe035a10f88c7566d25f5bc809a0dadaf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20G=C3=BCnther?= Date: Fri, 24 Sep 2021 09:15:56 +0200 Subject: [PATCH] FEATURE: RedirectAdministrator works as single permission Make that users with just the role RedirectAdministrator can access the backend to be able to create redirects. Fixes: #80 --- Configuration/Policy.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Configuration/Policy.yaml b/Configuration/Policy.yaml index 5e69f43..9e1aca2 100644 --- a/Configuration/Policy.yaml +++ b/Configuration/Policy.yaml @@ -6,6 +6,8 @@ privilegeTargets: 'Neos\Neos\Security\Authorization\Privilege\ModulePrivilege': 'Neos.RedirectHandler.Ui:Backend.Module.Management.Redirects': matcher: 'management/redirects' + 'Neos.RedirectHandler.Ui:Backend.Module.Management': + matcher: 'management' roles: 'Neos.Neos:Administrator': @@ -17,6 +19,10 @@ roles: 'Neos.RedirectHandler.Ui:RedirectAdministrator': privileges: + - privilegeTarget: 'Neos.Neos:Backend.GeneralAccess' + permission: GRANT + - privilegeTarget: 'Neos.RedirectHandler.Ui:Backend.Module.Management' + permission: GRANT - privilegeTarget: 'Neos.RedirectHandler.Ui:Backend.Module.Management.Redirects' permission: GRANT - privilegeTarget: 'Neos.RedirectHandler.Ui:Module'