aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Http/DataResponseTest.php
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-06-11 23:19:04 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-06-12 00:05:36 +0200
commit3ffb482b4e22aea92ec7fc17557080267bff4770 (patch)
treed2cbb5fd64223fcbab515234e652027b19bdaed3 /tests/lib/AppFramework/Http/DataResponseTest.php
parent2c6d5068ad3c565678cc12e15c262c3e58c12d0a (diff)
downloadnextcloud-server-3ffb482b4e22aea92ec7fc17557080267bff4770.tar.gz
nextcloud-server-3ffb482b4e22aea92ec7fc17557080267bff4770.zip
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>
Diffstat (limited to 'tests/lib/AppFramework/Http/DataResponseTest.php')
0 files changed, 0 insertions, 0 deletions