-
Notifications
You must be signed in to change notification settings - Fork 87
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
Possible permission issue with folder in Group Folder for user who is member of multiple groups #2280
Comments
I think this would be desired behaviour. I don't remember if there is anything in the docs about permission precedence, but in e.g. NTFS it is like this:
|
If you look at the readme here, it says: So this is no expected behaviour, but a bug. IMHO, any other behaviour makes a logical project and group setup impossible. |
The problem seems to lie in the code that combines the rules (ACLManager.php). It combines all rules for a given user and path level, and then applies the resulting rules level after level. So in the example above it combines "write/share/delete" as permissions for the group folder level and deny as permissions for the "See me" folder level and then applies the deny permission on top of the write/share/delete of the group folder level. Obviously, this does not work if different groups are used on different levels (as in the example in the issue report). A correct impementation should combine permissions for every used group/user from the top level down to the respective node in a first step and then in a second step combine all those permissions (with allow overriding deny). @icewind1991, as you seem to be the only one actively working on the groupfolders app, do you have time to look into this? The bug pretty much makes groupfolders unusable in projects with a little bit more complex permission setup. If you agree with my analysis, I could try to come up with a fix, even though I am not familiar with php. |
I just saw that this has been worked on in #1654. Unfortunately progress has stopped. At least my analysis seems to be correct. :-) |
This issue is a duplicate of #1212 and can be closed. |
Steps to reproduce
Expected behaviour
As "User AB" is a member of both groups "User Group A" and "User Group B", and "User Group B" still has inherited "Read" access to the folder "See me", it should be visible to "User AB".
Actual behaviour
"User AB" does not see the folder "See me".
Server configuration
**Operating system: Linux 5.4.0-137-generic x86_64
**Web server: unknown
**Database: mysql
**PHP version: 8.0.25
**Nextcloud version: 24.0.7 Enterprise
**Group folders version: 12.0.3
**Updated from an older Nextcloud/ownCloud or fresh install: fresh
**Where did you install Nextcloud from: managed Nextcloud at IONOS
**Are you using external storage, if yes which one: no
**Are you using encryption: no
**Are you using an external user-backend, if yes which one: no
Client configuration
**Browser: Chrome
**Operating system: Mac OS
Logs
Web server error log
Web server error log
Not available b/c managed NextcloudNextcloud log (data/nextcloud.log)
Nextcloud log
Not available b/c managed NextcloudBrowser log
Browser log
Not relevant b/c no error is actually thrownThe text was updated successfully, but these errors were encountered: