nextcloud/apps
Daniel Calviño Sánchez 820d121f03 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>
2020-06-26 13:36:49 +00:00
..
accessibility [tx-robot] updated from transifex 2020-06-21 02:16:25 +00:00
admin_audit Update license headers for 18 2019-12-20 09:23:25 +01:00
cloud_federation_api Update license headers 2019-12-05 15:38:45 +01:00
comments [tx-robot] updated from transifex 2020-06-01 02:16:10 +00:00
dav [tx-robot] updated from transifex 2020-06-20 02:16:56 +00:00
encryption [tx-robot] updated from transifex 2020-06-09 02:16:14 +00:00
federatedfilesharing [tx-robot] updated from transifex 2020-06-15 02:16:15 +00:00
federation [tx-robot] updated from transifex 2020-05-23 02:16:31 +00:00
files [tx-robot] updated from transifex 2020-06-24 02:17:03 +00:00
files_external [tx-robot] updated from transifex 2020-06-18 02:16:54 +00:00
files_sharing Fix share permission checkboxes enabled when permissions can not be set 2020-06-26 13:36:49 +00:00
files_trashbin [tx-robot] updated from transifex 2020-06-03 02:16:28 +00:00
files_versions [tx-robot] updated from transifex 2020-06-01 02:16:10 +00:00
lookup_server_connector Update license headers 2019-12-05 15:38:45 +01:00
oauth2 [tx-robot] updated from transifex 2020-06-11 02:16:08 +00:00
provisioning_api Fix languages empty array 2020-05-11 15:04:01 +02:00
settings [tx-robot] updated from transifex 2020-06-24 02:17:03 +00:00
sharebymail [tx-robot] updated from transifex 2020-06-20 02:16:56 +00:00
systemtags [tx-robot] updated from transifex 2020-06-18 02:16:54 +00:00
testing Update license headers 2019-12-05 15:38:45 +01:00
theming [tx-robot] updated from transifex 2020-06-23 02:17:29 +00:00
twofactor_backupcodes [tx-robot] updated from transifex 2020-06-19 02:16:45 +00:00
updatenotification [tx-robot] updated from transifex 2020-06-20 02:16:56 +00:00
user_ldap [tx-robot] updated from transifex 2020-06-15 02:16:15 +00:00
workflowengine [tx-robot] updated from transifex 2020-06-18 02:16:54 +00:00