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

Move more share permission checks to usershareprovider #4421

Merged
merged 4 commits into from
Dec 20, 2023

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Dec 19, 2023

The user share provider now checks if the user has sufficient permissions to add, delete or update a share.

We need to make sure the requesting user has the AddGrant permission on the
desired resource before we create a share.
We need to make sure the requesting user is either the owner/creator of the share
or has the RemoveGrant permission on the desired resource before deleting a share.
We need to make sure the requesting user is either the owner/creator of the share
or has the UpdateGrant permission on the desired resource before deleting a share.
@rhafer rhafer self-assigned this Dec 19, 2023
@rhafer rhafer force-pushed the update-share-permission-check branch from 1495a72 to 0431ec9 Compare December 19, 2023 11:23
rhafer added a commit to rhafer/ocis that referenced this pull request Dec 19, 2023
rhafer added a commit to rhafer/ocis that referenced this pull request Dec 19, 2023
@rhafer rhafer marked this pull request as ready for review December 19, 2023 13:59
@rhafer rhafer requested review from labkode, glpatcern and a team as code owners December 19, 2023 13:59
@rhafer rhafer requested review from micbar and fschade December 19, 2023 14:00
@kobergj kobergj merged commit 726f76e into cs3org:edge Dec 20, 2023
8 checks passed
@micbar micbar mentioned this pull request Dec 27, 2023
71 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants