sandstorm / NeosAcl

14 stars 8 forks source link

RestrictedEditor with restricted workspaces and restricted document tree area causes errors #37

Open Benjamin-K opened 2 years ago

Benjamin-K commented 2 years ago

Setup

Create a role with the following settings:

Behaviour

When removing the workspace restriction, all works out pretty well.

markusguenther commented 1 year ago

I also have an error without Dimension and Workspace Restrictions.

https://user-images.githubusercontent.com/1014126/201325464-527ea4bb-8821-4d5f-8c39-1dc89af88b96.mp4

Benjamin-K commented 1 year ago

Part of the problem will be solved when Issue neos/neos#3893 will be merged.

bwaidelich commented 8 months ago

We have come across the same issue: Restricting the Workspace and subtrees does not seem to work (@markusguenther I think your issue is not related though, that looks more like an outdated session)

@skurfuerst can you think of a solution without AOP? We rely on this in a project and I think that there are funds available for commissioning a fix

Benjamin-K commented 8 months ago

I think the issue needs to be fixed in the Core. IMO the current implementation of the isInWorkspace privilege matcher makes little to no sense. It will only apply if the current user or any other user already made some changes in the current workspace. But it should actually only match, if the currently selected workspace of the user is in one of the defined workspaces.

Which again leads us to neos/neos#3893. We can also discuss this issue there and i can also create a PR, but i waited for some more responses as changing the existing isInWorkspace implementation would be breaking.

bwaidelich commented 8 months ago

@Benjamin-K Thanks for your input. Yes, let's discuss the issue in https://github.com/neos/neos-development-collection/issues/3893 <3