]> source.dussan.org Git - nextcloud-server.git/commit
Fix share permission checkboxes enabled when permissions can not be set 21379/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 11 Jun 2020 21:19:04 +0000 (23:19 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 11 Jun 2020 22:05:36 +0000 (00:05 +0200)
commit3ffb482b4e22aea92ec7fc17557080267bff4770
treed2cbb5fd64223fcbab515234e652027b19bdaed3
parent2c6d5068ad3c565678cc12e15c262c3e58c12d0a
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>
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