Keep edit permission when updating resharing permission for file shares

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-03-03 16:42:10 +01:00
parent 11e8ffce88
commit 689c122c65
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -720,7 +720,7 @@
$editCb.prop('indeterminate', !checked && numberChecked > 0); $editCb.prop('indeterminate', !checked && numberChecked > 0);
} }
} else { } else {
if ($element.attr('name') === 'edit' && $element.is(':checked')) { if ($('input[name="edit"]', $li).is(':checked')) {
permissions |= OC.PERMISSION_UPDATE; permissions |= OC.PERMISSION_UPDATE;
} }
} }