Member area

This an exemplary protected area of your website that should only be visible to authenticated "Frontend" or "Backend" users according to the provided Policy.yaml:

privilegeTargets:
                                        
'Neos\ContentRepository\Security\Authorization\Privilege\Node\ReadNodePrivilege':
'Neos.Demo:MembersArea':
# fee74676-c42f-89da-208e-1741a66525d4 is the identifier of the "Member area" node.
# You can also specify the nodepath, but that is not as reliable
matcher: 'isDescendantNodeOf("fee74676-c42f-89da-208e-1741a66525d4")'

roles:
'Flowpack.Neos.FrontendLogin:User':
privileges:
-
privilegeTarget: 'Neos.Demo:MembersArea'
permission: GRANT

'Neos.Neos:Editor':
privileges:
-
privilegeTarget: 'Neos.Demo:MembersArea'
permission: GRANT

If the session expires or you un-authenticate the current user using the Logout form, the link to this page will be removed from the main navigation and you won't be able to navigate to this page anymore, even if you know the URL.