Skip to content

Instantly share code, notes, and snippets.

@aertmann
Last active October 17, 2017 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aertmann/c2a25e2f1c01dfaf8dff875b8ae6cb7b to your computer and use it in GitHub Desktop.
Save aertmann/c2a25e2f1c01dfaf8dff875b8ae6cb7b to your computer and use it in GitHub Desktop.
Multi-site access restriction with Neos CMS
privilegeTargets:
'Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\EntityPrivilege':
'Acme.Package:Site.Alpha':
matcher: 'isType("Neos\Neos\Domain\Model\Site") && property("nodeName") == "alpha"'
'Acme.Package:Site.Beta':
matcher: 'isType("Neos\Neos\Domain\Model\Site") && property("nodeName") == "beta"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment