|
|
@ -256,7 +256,7 @@ OC.Share={ |
|
|
|
var shareType = selected.item.value.shareType; |
|
|
|
var shareType = selected.item.value.shareType; |
|
|
|
var shareWith = selected.item.value.shareWith; |
|
|
|
var shareWith = selected.item.value.shareWith; |
|
|
|
$(this).val(shareWith); |
|
|
|
$(this).val(shareWith); |
|
|
|
// Default permissions are Edit and Share (all)
|
|
|
|
// Default permissions are Edit (CRUD) and Share
|
|
|
|
var permissions = OC.PERMISSION_ALL; |
|
|
|
var permissions = OC.PERMISSION_ALL; |
|
|
|
OC.Share.share(itemType, itemSource, shareType, shareWith, permissions, function() { |
|
|
|
OC.Share.share(itemType, itemSource, shareType, shareWith, permissions, function() { |
|
|
|
OC.Share.addShareWith(shareType, shareWith, selected.item.label, permissions, possiblePermissions); |
|
|
|
OC.Share.addShareWith(shareType, shareWith, selected.item.label, permissions, possiblePermissions); |
|
|
|