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

Add support for read-only groups #8766

Merged
merged 1 commit into from
Apr 5, 2023
Merged

Add support for read-only groups #8766

merged 1 commit into from
Apr 5, 2023

Conversation

JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Apr 3, 2023

Description

Adds support for read-only groups. Such groups can't be edited or assigned to/removed from users. They are indicated via a lock icon in the group list and all affected inputs.

Needs latest oCIS master! You can test it by following the instructions given in owncloud/ocis#5974.

Related Issue

Screenshots:

image

image

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

To-Do's:

@JammingBen JammingBen self-assigned this Apr 3, 2023
@sonarcloud
Copy link

sonarcloud bot commented Apr 4, 2023

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

66.7% 66.7% Coverage
0.0% 0.0% Duplication

@JammingBen JammingBen marked this pull request as ready for review April 4, 2023 15:17
...g,
readonly: g.groupTypes?.includes('ReadOnly')
}))
.sort((a: any, b: any) => b.readonly - a.readonly)
Copy link
Member

Choose a reason for hiding this comment

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

🙈

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know, I know 😄 But even when using the correct types here, TS would complain that you can't subtract boolean values from another.

@JammingBen JammingBen merged commit 03040fb into master Apr 5, 2023
@delete-merged-branch delete-merged-branch bot deleted the readonly-groups branch April 5, 2023 11:37
@micbar micbar mentioned this pull request May 3, 2023
89 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.

[Web] Add users to custom groups
2 participants