]> source.dussan.org Git - nextcloud-server.git/commit
Correctly switch/revert from custom to bundled perms 40437/head
authorfenn-cs <fenn25.fn@gmail.com>
Fri, 15 Sep 2023 10:59:03 +0000 (11:59 +0100)
committernextcloud-command <nextcloud-command@users.noreply.github.com>
Fri, 15 Sep 2023 13:48:54 +0000 (13:48 +0000)
commit481f5bba81d2bf3c79c811cdefac8dd3e46d2012
tree62a8467ad5b5ffd9b0bd203123cfbfc39eed79c0
parent5a9df6c1688d9bdd787e2b4c654b1451758b2076
Correctly switch/revert from custom to bundled perms

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 : https://github.com/nextcloud/server/issues/40431

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
apps/files_sharing/src/views/SharingDetailsTab.vue
dist/files_sharing-files_sharing_tab.js
dist/files_sharing-files_sharing_tab.js.map