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

publicsshareprovider: Allow creating/updating public links on received shares #4429

Merged
merged 1 commit into from Dec 21, 2023

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Dec 21, 2023

The permission check when trying to create an internal link of a received share did not work correctly. Internal links have all Permissions set to false. The 'SufficientCS3Permissions' method treats an all-false PermissionSet as a deny grant, which a wrong in the public link case.
We can skip the 'SufficientCS3Permissions' check for internal links however, since the creation of a internal link should always be allowed as long as the user has the 'AddGrant' permission.

Related Issue: owncloud/ocis#8039

…d shares

The permission check when trying to create an internal link of a received share
did not work correctly. Internal links have all Permissions set to false. The
'SufficientCS3Permissions' method treats an all-false PermissionSet as a deny grant,
which a wrong in the public link case.
We can skip the 'SufficientCS3Permissions' check for internal links however, since
the creation of a internal link should always be allowed as long as the user has the
'AddGrant' permission.

Related Issue: owncloud/ocis#8039
Copy link
Member

@micbar micbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Missed that on my PR.

@micbar micbar merged commit 44ba5ee into cs3org:edge Dec 21, 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.

None yet

2 participants