Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # #
- # 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement