]> source.dussan.org Git - nextcloud-server.git/commit
Fix share permission checkboxes enabled when permissions can not be set 21575/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 11 Jun 2020 21:19:04 +0000 (23:19 +0200)
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Fri, 26 Jun 2020 13:36:49 +0000 (13:36 +0000)
commit820d121f03b4d80d8385797c99deb7392fa69e45
tree86003459f4864b1d3f3ab394b9265007a43b2fc2
parent047b5407d6e2745b011e60f014d9794c030df062
Fix share permission checkboxes enabled when permissions can not be set

A sharee can reshare a file and set the edit, create, delete and share
permissions of the reshare only if the received share has edit, create,
delete and share permissions, or if they were revoked in the received
share after being set in the reshare. Therefore, the permission
checkboxes in the share menu should be enabled only if the user can set
them (otherwise trying to check them will lead to an error).

Note that "sharePermissions" has all the permissions if the file is not
a reshare but a file owned by the user.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
apps/files_sharing/js/dist/files_sharing_tab.js
apps/files_sharing/js/dist/files_sharing_tab.js.map
apps/files_sharing/src/components/SharingEntry.vue