use edit & reshare permission as default
This commit is contained in:
parent
5660f99592
commit
ca95a475d5
1 changed files with 2 additions and 2 deletions
|
@ -256,8 +256,8 @@ OC.Share={
|
|||
var shareType = selected.item.value.shareType;
|
||||
var shareWith = selected.item.value.shareWith;
|
||||
$(this).val(shareWith);
|
||||
// Default permissions are Read and Share
|
||||
var permissions = OC.PERMISSION_READ | OC.PERMISSION_SHARE;
|
||||
// Default permissions are Edit and Share (all)
|
||||
var permissions = OC.PERMISSION_ALL;
|
||||
OC.Share.share(itemType, itemSource, shareType, shareWith, permissions, function() {
|
||||
OC.Share.addShareWith(shareType, shareWith, selected.item.label, permissions, possiblePermissions);
|
||||
$('#shareWith').val('');
|
||||
|
|
Loading…
Reference in a new issue