Merge pull request #24108 from owncloud/fix_24032

Allow setting can edit permissions on federated shares in webUI
This commit is contained in:
Thomas Müller 2016-04-20 20:42:03 +02:00
commit 22f9a12c74
1 changed files with 11 additions and 0 deletions

View File

@ -280,6 +280,17 @@
permissions |= $(checkbox).data('permissions');
});
// The federated share UI is a bit different so handle it properly
if (shareType === OC.Share.SHARE_TYPE_REMOTE &&
$element.attr('name') === 'edit' &&
$element.is(':checked')) {
permissions |= OC.PERMISSION_UPDATE;
if (this.model.deletePermissionPossible()) {
permissions |= OC.PERMISSION_CREATE;
}
}
this.model.updateShare(shareId, {permissions: permissions});
},