Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend Node creation triggered no errors #49

Open
hphoeksma opened this issue Dec 13, 2024 · 0 comments
Open

Frontend Node creation triggered no errors #49

hphoeksma opened this issue Dec 13, 2024 · 0 comments

Comments

@hphoeksma
Copy link

Upon implementing a frontend node creation via a form there were no errors as to why nothing worked. After disabling the ACL package everything started working. After some investigation we could make it work again by whitelisting the specifics like so:

privilegeTargets:
  'Neos\ContentRepository\Security\Authorization\Privilege\Node\CreateNodePrivilege':
    'Vendor.Site:AllowEventCreation':
      label: Allowed to create Events from the frontend
      matcher: 'createdNodeIsOfType("Vendor.Site:Document.Event")'

  'Neos\ContentRepository\Security\Authorization\Privilege\Node\EditNodePrivilege':
    'Vendor.Site:AllowEventEdit':
      label: Allowed to create Events from the frontend
      matcher: 'nodeIsOfType("Vendor.Site:Document.Event")'

roles:
  'Neos.Flow:Everybody':
    privileges:
      -
        privilegeTarget: 'Vendor.Site:AllowEventCreation'
        permission: GRANT
      -
        privilegeTarget: 'Vendor.Site:AllowEventEdit'
        permission: GRANT

It would be nice if this would have show some logging to easier spot missing whitelistings.

Thanks @Sebobo for assisting in the Debugging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant