Created
June 6, 2015 14:24
-
-
Save Torsten85/809b9f984ba311bc09aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # | |
# Security policy for the TYPO3.NeosDemoTypo3Org package # | |
# # | |
privilegeTargets: | |
'TYPO3\Flow\Security\Authorization\Privilege\Method\MethodPrivilege': | |
TYPO3_NeosDemoTypo3Org_RegistrationAccess: | |
matcher: method(TYPO3\NeosDemoTypo3Org\Controller\RegistrationController->(index|newAccount|createAccount|createTemporaryAccount)Action()) | |
TYPO3_NeosDemoTypo3Org_FlickrAccess: | |
matcher: method(TYPO3\NeosDemoTypo3Org\Controller\FlickrController->(tagStream|userStream)Action()) | |
'TYPO3\TYPO3CR\Security\Authorization\Privilege\Node\ReadNodePrivilege': | |
'TYPO3.NeosDemoTypo3Org:MembersArea': | |
# fee74676-c42f-89da-208e-1741a66525d4 is the node identifier of the "member-area" node, by default located at "/sites/neosdemotypo3org/member-area" | |
matcher: 'isDescendantNodeOf("fee74676-c42f-89da-208e-1741a66525d4")' | |
'TYPO3.NeosDemoTypo3Org:RegisterPage': | |
# e5335cad-2647-db8a-c15d-a5d69cf0d612 is the node identifier of the "register" node | |
matcher: 'isDescendantNodeOf("e5335cad-2647-db8a-c15d-a5d69cf0d612")' | |
roles: | |
'TYPO3.Flow:Anonymous': | |
- | |
privilegeTarget: 'TYPO3.NeosDemoTypo3Org:RegisterPage' | |
permission: GRANT | |
'TYPO3.Flow:Everybody': | |
privileges: | |
- | |
privilegeTarget: TYPO3_NeosDemoTypo3Org_RegistrationAccess | |
permission: GRANT | |
- | |
privilegeTarget: TYPO3_NeosDemoTypo3Org_FlickrAccess | |
permission: GRANT | |
'Flowpack.Neos.FrontendLogin:User': | |
privileges: | |
- | |
# Grant "frontend users" to access the "Member area" | |
privilegeTarget: 'TYPO3.NeosDemoTypo3Org:MembersArea' | |
permission: GRANT | |
'TYPO3.Neos:Editor': | |
privileges: | |
- | |
# Grant "backend users" to access the "Member area" - Otherwise those pages would be hidden in the backend, too! | |
privilegeTarget: 'TYPO3.NeosDemoTypo3Org:MembersArea' | |
permission: GRANT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment