-
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
Advanced permissions don't override Group Folder permissions #2394
Comments
I would say that this is the expected behaviour:
The real issue seems to be that you can set these advanced permissions, but you don't get any feedback that you cannot overwrite the groupfolder defaults. This is probably covered by #2366. |
@XueSheng-GIT Thanks for that, this probably explains it all. However, on any object shared in Nextcloud the sharing user can grant permissions right up to their own permissions on that object. Wouldn't it make sense if the "admin" of the Group Folder had similar possibilities? |
Hi there, I'm facing nearly the same issue. We have a groupfolder with several subfolders. If I get it right "allow" should overwrite "denied" but in this case User A gets the message that he isn't allowed to create anything within the subfolder. Do you have any idea what I'm doing wrong @XueSheng-GIT ? We are on NC 26.0.1 and Groupfolder 14.0.4 Thanks for any support! |
Hi @Hafenkante87, In our scenario, we had to allow all permissions on the group folder (in NC administration area) and then deny specific permissions of the folder itself. Group folders don't follow same rules as standard NC shares, where permissions are based on rights of the sharing user (or they do but it doesn't seem right). This also allowed us to self-restrict access to some permissions not normally required. We remove all but read access from the Admin group (on the folders and subfolders) and when a change is needed this gets temporarily overridden. |
Thanks for your replay @dzidek23 In general I think it would be a more comfortable rule if user permissions overwrite group permissions instead of allow overwrites deny. It makes it way more easier to set up admins for specific subfolders. |
As already mentioned above the main groupfolder permissions always define the maximum permissions a user can have in any subdirectory. ACL permissions can not be used to extend the main groupfolder permissions. This is one of the flaws of the ACL permission system and you will find a few other issues related to this topic (e.g. #1212, #598). To be honest the design of the ACL permissions is a PITA for the users. The problem is that it's not easy to change now and nobody steps up to redesign it. |
Hi all, I doublechecked all permissions and the ones in the mainfolder are "everything allowed". That's why a user was able to create the subfolder which permissions are shown in the screenshot above. And although the user set itself "everything allowed" he can't create or delete any files in the subfolder. When I remove the permissions "Gym_Har" Anja is able to create folders, delete documents etc again. So it still seems to me that the group permission overwrites the user permission :( |
@Hafenkante87 In the group folder admin section, we have: And for the share - in the file view: This allows a specific user (member of the group) to have full control but no other member from this group. I'm showing you just a test share, but other folders are configured similarly . |
How to use GitHub
Steps to reproduce
Create a Group Folder with permissions like below:
![group_folder](https://private-user-images.githubusercontent.com/70292029/239209203-9aa43625-edf6-46d9-b927-aa924e71945e.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODgxNTEsIm5iZiI6MTczOTU4Nzg1MSwicGF0aCI6Ii83MDI5MjAyOS8yMzkyMDkyMDMtOWFhNDM2MjUtZWRmNi00NmQ5LWI5MjctYWE5MjRlNzE5NDVlLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAyNTA1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgyZTkyNGZiOTI1MTEwNDIzMDBlMmJmMDE5MWQyYzRkMWQ2N2JlZGJmNWVlYjg3ZThlMjRhZWYwODk0MTM3NjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iQV6FM7G14_XraNY4MUo1vr8FRJQHRYzTL-PXKUwF5U)
Apply Advanced permission and a subfolder within the Group Folder like this:
Expected behaviour
I would expect the TL (Group) to be granted DELETE on the subfolder as per the Advanced Permissions set by Admin (Group).
Actual behaviour
Users in the TL (Group) can't delete objects within the subfolder.
Once granting DELETE to TL (Group) on the Group Folder all is working as intended.
I'm submitting this as a bug as in my understanding the higher advanced settings set by Group Folder admin should take precedence over Group Folder settings.
Server configuration
Operating system:
Debian 11
Web server:
Apache2 2.4.56
Database:
MariaDB 10.5.18
PHP version:
8.1.18
Nextcloud version: (see Nextcloud admin page)
25.0.6
Group folders version:
13.1.3
Updated from an older Nextcloud/ownCloud or fresh install:
updated number of times
Are you using external storage, if yes which one: local/s3/smb/sftp/...
local
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/Saml/...
LDAP
The text was updated successfully, but these errors were encountered: