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

take permissions from multiple paths into account for share permissions #31684

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

icewind1991
Copy link
Member

a user can have access to a file trough different paths, with differing permissions combine all permissions to determine if the user can share this file.

To test:

  • create folder /a and /a/b
  • share /a with user1 without reshare permissions
  • share /a/b with user1 with full permissions
  • user1 now has access to b from either /b or /a/b
  • as user1 try to reshare /a/b

Currently, the ui shows the option to reshare a/b, but errors when you try to reshare
Sharing /b already works currently.

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Mar 23, 2022
@icewind1991 icewind1991 added this to the Nextcloud 24 milestone Mar 23, 2022
@Pytal
Copy link
Member

Pytal commented Mar 23, 2022

Backport?

@skjnldsv skjnldsv mentioned this pull request Mar 24, 2022
@szaimen szaimen added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Mar 25, 2022
@szaimen
Copy link
Contributor

szaimen commented Mar 25, 2022

Test failures...

@blizzz blizzz mentioned this pull request Mar 31, 2022
@icewind1991
Copy link
Member Author

/backport to stable23

@icewind1991 icewind1991 force-pushed the user-share-permissions-merge branch 2 times, most recently from 417d2fb to eb9600a Compare March 31, 2022 14:35
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991
Copy link
Member Author

Fixed tests

@szaimen szaimen merged commit 1ceb6cd into master Apr 5, 2022
@szaimen szaimen deleted the user-share-permissions-merge branch April 5, 2022 15:37
@szaimen szaimen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Apr 5, 2022
@blizzz blizzz mentioned this pull request Apr 7, 2022
@PVince81
Copy link
Member

@icewind1991 is this 23 only or also needs 22 backport ?

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

Successfully merging this pull request may close these issues.

5 participants