sandstorm / NeosAcl

14 stars 8 forks source link

Restrict to workspace throws Error 500 #34

Closed Benjamin-K closed 2 years ago

Benjamin-K commented 2 years ago

When creating a role with restricted workspaces, you will get 500 Internal Server Error. The reason for this is, that isInWorkspace() actually expects an array of workspaces to be tested instead of a string with one workspace.

Compare: Neos.ContentRepository / NodePrivilegeContext and Sandstorm.NeosAcl / MatcherConfiguration.

Tested with Neos 7.3.

I will test this further and maybe create a PR for this.