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

feat: respect default link permissions #10038

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Nov 22, 2023

Description

When creating a new link, Web now respects the default permissions coming from the server.

Needs a reva update in oCIS for Web to properly read the config from the server. Without, Web just defaults to 1 for the permission (the same as the server will).

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

@JammingBen JammingBen self-assigned this Nov 22, 2023
@JammingBen JammingBen changed the title feat: respect default link permissons feat: respect default link permissions Nov 22, 2023
@JammingBen JammingBen force-pushed the link-default-permissions-capability branch from 221cf48 to 0920321 Compare November 22, 2023 14:12
@JammingBen JammingBen force-pushed the link-default-permissions-capability branch from 0920321 to 065234e Compare November 22, 2023 14:39
Comment on lines +178 to +180
if (defaultPermissions === undefined) {
defaultPermissions = SharePermissionBit.Read
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Defining the same default as fallback here as in useCapabilityFilesSharingPublicDefaultPermissions is a shortcoming of our architecture, see #9748.

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

76.3% 76.3% Coverage
0.0% 0.0% Duplication

@JammingBen JammingBen marked this pull request as ready for review November 23, 2023 07:26
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

👍

@kulmann kulmann merged commit 1867db1 into master Nov 27, 2023
2 checks passed
@delete-merged-branch delete-merged-branch bot deleted the link-default-permissions-capability branch November 27, 2023 21:19
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.

[web+ocis] Make default link permission configurable
2 participants