Skip to content

Instantly share code, notes, and snippets.

@Torsten85
Created June 6, 2015 14:54
Show Gist options
  • Save Torsten85/9c765ddc1ef17028ccb8 to your computer and use it in GitHub Desktop.
Save Torsten85/9c765ddc1ef17028ccb8 to your computer and use it in GitHub Desktop.
Goal is to have a page (node) that shows up when you are not logged in, and is hidden when you are.
# #
# Security policy for the TYPO3.NeosDemoTypo3Org package #
# #
privilegeTargets:
'TYPO3\TYPO3CR\Security\Authorization\Privilege\Node\ReadNodePrivilege':
'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:Everybody':
privileges:
-
privilegeTarget: 'TYPO3.NeosDemoTypo3Org:RegisterPage'
permission: GRANT
'Flowpack.Neos.FrontendLogin:User':
privileges:
-
privilegeTarget: 'TYPO3.NeosDemoTypo3Org:RegisterPage'
permission: DENY
'TYPO3.Neos:Editor':
privileges:
-
privilegeTarget: 'TYPO3.NeosDemoTypo3Org:RegisterPage'
permission: GRANT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment