Merge pull request #19768 from nextcloud/bugfix/noid/keep-edit-permission

[stable17] Keep edit permission when toggling share checkbox
This commit is contained in:
Roeland Jago Douma 2020-03-05 08:57:17 +01:00 committed by GitHub
commit dc35dd39b4
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;
}
}