Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. # #
  2. # Security policy for the TYPO3.NeosDemoTypo3Org package #
  3. # #
  4.  
  5. privilegeTargets:
  6. 'TYPO3\Flow\Security\Authorization\Privilege\Method\MethodPrivilege':
  7.  
  8. TYPO3_NeosDemoTypo3Org_RegistrationAccess:
  9. matcher: method(TYPO3\NeosDemoTypo3Org\Controller\RegistrationController->(index|newAccount|createAccount|createTemporaryAccount)Action())
  10. TYPO3_NeosDemoTypo3Org_FlickrAccess:
  11. matcher: method(TYPO3\NeosDemoTypo3Org\Controller\FlickrController->(tagStream|userStream)Action())
  12.  
  13. 'TYPO3\TYPO3CR\Security\Authorization\Privilege\Node\ReadNodePrivilege':
  14.  
  15. 'TYPO3.NeosDemoTypo3Org:MembersArea':
  16. # fee74676-c42f-89da-208e-1741a66525d4 is the node identifier of the "member-area" node, by default located at "/sites/neosdemotypo3org/member-area"
  17. matcher: 'isDescendantNodeOf("fee74676-c42f-89da-208e-1741a66525d4")'
  18.  
  19. 'TYPO3.NeosDemoTypo3Org:RegisterPage':
  20. # e5335cad-2647-db8a-c15d-a5d69cf0d612 is the node identifier of the "register" node
  21. matcher: 'isDescendantNodeOf("e5335cad-2647-db8a-c15d-a5d69cf0d612")'
  22. roles:
  23.  
  24. 'TYPO3.Flow:Anonymous':
  25. -
  26. privilegeTarget: 'TYPO3.NeosDemoTypo3Org:RegisterPage'
  27. permission: GRANT
  28.  
  29. 'TYPO3.Flow:Everybody':
  30. privileges:
  31. -
  32. privilegeTarget: TYPO3_NeosDemoTypo3Org_RegistrationAccess
  33. permission: GRANT
  34. -
  35. privilegeTarget: TYPO3_NeosDemoTypo3Org_FlickrAccess
  36. permission: GRANT
  37.  
  38.  
  39. 'Flowpack.Neos.FrontendLogin:User':
  40. privileges:
  41. -
  42. # Grant "frontend users" to access the "Member area"
  43. privilegeTarget: 'TYPO3.NeosDemoTypo3Org:MembersArea'
  44. permission: GRANT
  45.  
  46.  
  47. 'TYPO3.Neos:Editor':
  48. privileges:
  49. -
  50. # Grant "backend users" to access the "Member area" - Otherwise those pages would be hidden in the backend, too!
  51. privilegeTarget: 'TYPO3.NeosDemoTypo3Org:MembersArea'
  52. permission: GRANT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement