-
Notifications
You must be signed in to change notification settings - Fork 186
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
graph: update permissions #7860
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
211e98d
to
7f3354b
Compare
needs: cs3org/reva#4388 |
6d1b7e3
to
f70c415
Compare
f70c415
to
3591d64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nitpicks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with the required changes.
3591d64
to
6c63803
Compare
Otherwise errorcode.RenderError() will not render the correct HTTP Status
This is an initial implementation of PATCH support on drives/{driveid}/items/{itemid}/permissions/{id}. It focusses on updating user shares for now. It's possible to update the expirationDate, roles and/or libregraphResourceActions. Updating the permissions of a space root or a public link share is currently not implemeted.
6c63803
to
269ce60
Compare
Kudos, SonarCloud Quality Gate passed! |
This is an initial implementation of PATCH support on drives/{driveid}/items/{itemid}/permissions/{id}.
It focusses on updating user shares for now. It's possible to update the expirationDate, roles and/or libregraphResourceActions.
Updating the permissions of a space root or a public link share is currently not implemented. Both should come with a follow up PR.
Somehow the usershareprovider is also still lacking checks if the sharer is actually allowed to set the requested permissions (e.g. when re-sharing). Still need to investigate that, but that something for a reva PR.