diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-09-14 01:01:02 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-16 07:23:28 +0200 |
commit | 7ae84e0e5c60a5b891dcc4183b0a1cff83f36090 (patch) | |
tree | 2de5afc2830862fd37688b0e52457ff1637c7199 /core/js/shareitemmodel.js | |
parent | 6d832359b6f00bed5b2444b8d3cd0680a459619e (diff) | |
download | nextcloud-server-7ae84e0e5c60a5b891dcc4183b0a1cff83f36090.tar.gz nextcloud-server-7ae84e0e5c60a5b891dcc4183b0a1cff83f36090.zip |
make 'Allow editing' (aka public upload) checkbox work
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r-- | core/js/shareitemmodel.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js index 9e3f829e457..3569c6ffd1a 100644 --- a/core/js/shareitemmodel.js +++ b/core/js/shareitemmodel.js @@ -132,6 +132,15 @@ }); }, + setPublicUpload: function(allow) { + var permissions = OC.PERMISSION_READ; + if(allow) { + permissions = OC.PERMISSION_UPDATE + OC.PERMISSION_CREATE + OC.PERMISSION_READ; + } + + this.addLinkShare({permissions: permissions}); + }, + addShare: function(event, selected, options) { event.preventDefault(); |