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

[stable27] Correctly switch/revert from custom to bundled perms #40437

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Sep 15, 2023

backport of #40434

@blizzz
Copy link
Member Author

blizzz commented Sep 15, 2023

/compile amend /

@blizzz blizzz added this to the Nextcloud 27.1.0 milestone Sep 15, 2023
@blizzz blizzz changed the title Correctly switch/revert from custom to bundled perms [stable27] Correctly switch/revert from custom to bundled perms Sep 15, 2023
@blizzz blizzz requested a review from szaimen September 15, 2023 13:35
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 15, 2023
@blizzz blizzz mentioned this pull request Sep 15, 2023
@blizzz
Copy link
Member Author

blizzz commented Sep 15, 2023

now waiting for the compiled assets 🧱 ♠️

@blizzz
Copy link
Member Author

blizzz commented Sep 15, 2023

build failed:

Screenshot_20230915_154501

That's does not seem to be an issue with the code, rather with the action?

@blizzz
Copy link
Member Author

blizzz commented Sep 15, 2023

@Fenn-CS could you compile and push?

We have a set custom permissions checkbox, that when selected should set
the quick permissions settings to custom as well as show the custom permission settings.

When the checkbox is unchecked the quick permissions have to be reset to the default,
`bundledPermissions.ALL` but also users can switch from custom permissions to `bundled`
by just changing the radio select, hence we need a mechanism to set the permissions back
to the correct fallback depending on where the user has toggled the the custom permission from.

The mechanism is `revertSharingPermission` and this commit, makes sure revert values are correctly
set upon toggle.

Resolves : #40431

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@blizzz
Copy link
Member Author

blizzz commented Sep 15, 2023

second attempt succeeded

@blizzz blizzz merged commit ed20a90 into stable27 Sep 15, 2023
37 of 38 checks passed
@blizzz blizzz deleted the backport/40434/stable27 branch September 15, 2023 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: sharing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants