Merge pull request #24108 from owncloud/fix_24032
Allow setting can edit permissions on federated shares in webUI
This commit is contained in:
commit
22f9a12c74
|
@ -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});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue