use edit & reshare permission as default

remotes/origin/stable6
Jörn Friedrich Dreyer 11 years ago
parent 5660f99592
commit ca95a475d5
  1. 4
      core/js/share.js

@ -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…
Cancel
Save