forked from sandstorm/NeosTwoFactorAuthentication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPolicy.yaml
25 lines (20 loc) · 875 Bytes
/
Policy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
privilegeTargets:
'Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilege':
'Sandstorm.NeosTwoFactorAuthentication:LoginWithSecondFactor':
matcher: 'method(Sandstorm\NeosTwoFactorAuthentication\Controller\LoginController->(.*)Action())'
'Sandstorm.NeosTwoFactorAuthentication:BackendModule':
matcher: 'method(Sandstorm\NeosTwoFactorAuthentication\Controller\BackendController->(.*)Action())'
roles:
'Neos.Neos:AbstractEditor':
privileges:
-
privilegeTarget: 'Sandstorm.NeosTwoFactorAuthentication:LoginWithSecondFactor'
permission: GRANT
-
privilegeTarget: 'Sandstorm.NeosTwoFactorAuthentication:BackendModule'
permission: GRANT
'Neos.Neos:Administrator':
privileges:
-
privilegeTarget: 'Sandstorm.NeosTwoFactorAuthentication:BackendModule'
permission: GRANT