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 denial capability #7892

Merged
merged 1 commit into from
Nov 2, 2022
Merged

feat: respect denial capability #7892

merged 1 commit into from
Nov 2, 2022

Conversation

kulmann
Copy link
Member

@kulmann kulmann commented Oct 28, 2022

Description

Since owncloud/ocis#4903 has been merged today, web shows the experimental sharing denial feature (via the "No access" role) by default. oCIS added a capability to announce to clients whether or not the feature is available and should be shown to users. With this PR web now respects that capability.

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

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

this.selectedRole = PeopleShareRoles.list(
this.resource.isFolder,
this.resource.canDeny()
this.hasRoleCustomPermissions,
Copy link
Member Author

Choose a reason for hiding this comment

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

This was actually a bug, because canDeny was passed as hasCustom param for the list method.

@sonarcloud
Copy link

sonarcloud bot commented Nov 2, 2022

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Collaborator

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kulmann kulmann merged commit c1797de into master Nov 2, 2022
@delete-merged-branch delete-merged-branch bot deleted the share-denial-capability branch November 2, 2022 12:44
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