Merge pull request #19797 from nextcloud/backport/stable16/19768

[stable16] Keep edit permission when toggling share checkbox
This commit is contained in:
Roeland Jago Douma 2020-03-07 15:06:28 +01:00 committed by GitHub
commit 85dfb36cb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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;
}
}