diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-08-13 15:27:24 -0700 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-08-13 15:27:24 -0700 |
commit | 435e63b5eef345a996618dbc0f4e4c9d202de7ec (patch) | |
tree | a8f9d0ba73e2115056ed67ba4698948ededf31be | |
parent | 9492aeffe91b404eaf364e2d0ed51118aa7833aa (diff) | |
parent | 11a404b90b8676cd38b1f6dbfbc7ca074f9a31ab (diff) | |
download | nextcloud-server-435e63b5eef345a996618dbc0f4e4c9d202de7ec.tar.gz nextcloud-server-435e63b5eef345a996618dbc0f4e4c9d202de7ec.zip |
Merge pull request #4410 from owncloud/fix_sharing_defaults
Fix sharing defaults
-rw-r--r-- | core/js/js.js | 1 | ||||
-rw-r--r-- | core/js/share.js | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/js/js.js b/core/js/js.js index 1d1711383f7..64b5556987d 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -157,6 +157,7 @@ var OC={ PERMISSION_UPDATE:2, PERMISSION_DELETE:8, PERMISSION_SHARE:16, + PERMISSION_ALL:31, webroot:oc_webroot, appswebroots:(typeof oc_appswebroots !== 'undefined') ? oc_appswebroots:false, currentUser:(typeof oc_current_user!=='undefined')?oc_current_user:false, diff --git a/core/js/share.js b/core/js/share.js index b4b5159b0b5..a0ae39fffed 100644 --- a/core/js/share.js +++ b/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 (CRUD) and Share + 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(''); |