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 e76116b03b
commit c941baf6b3
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 1 deletions

View File

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