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:
blizzz 2016-12-06 22:53:46 +01:00 committed by GitHub
commit c776aa9282
2 changed files with 4 additions and 1 deletions

View file

@ -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';

View file

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