mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #2530 from nextcloud/fix-change-permissions-mail-shares-on-folder
fix change permission on mail shares of folders
This commit is contained in:
commit
c776aa9282
2 changed files with 4 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ OC.FileUpload.prototype = {
|
|||
/**
|
||||
* Returns whether the upload is in progress
|
||||
*
|
||||
* @return {bool}
|
||||
* @return {boolean}
|
||||
*/
|
||||
isPending: function() {
|
||||
return this.data.state() === 'pending';
|
||||
|
|
|
|||
|
|
@ -367,6 +367,9 @@
|
|||
checked = $element.is(':checked');
|
||||
// Check/uncheck Create, Update, and Delete checkboxes if Edit is checked/unck
|
||||
$($checkboxes).prop('checked', checked);
|
||||
if (checked) {
|
||||
permissions |= OC.PERMISSION_CREATE | OC.PERMISSION_UPDATE | OC.PERMISSION_DELETE;
|
||||
}
|
||||
} else {
|
||||
var numberChecked = $checkboxes.filter(':checked').length;
|
||||
checked = numberChecked > 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue