diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-17 18:11:43 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-17 18:11:43 +0200 |
commit | d6771502f21349d5393158eda6d2d16569fd60c3 (patch) | |
tree | 47df270daa9b45f9a65db3992b152ea9e1955ece /core/js | |
parent | 2e79aab0ce7ec9fa88ccbafd01e82574b93514f9 (diff) | |
download | nextcloud-server-d6771502f21349d5393158eda6d2d16569fd60c3.tar.gz nextcloud-server-d6771502f21349d5393158eda6d2d16569fd60c3.zip |
check only permission from link-share to decide if public upload is enabled or disabled
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/share.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js index 5d34faf8a5d..250f410072c 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -177,7 +177,9 @@ OC.Share={ if (allowPublicUploadStatus) { return true; } - allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false; + if (value.share_type === OC.Share.SHARE_TYPE_LINK) { + allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false; + } }); html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with')+'" />'; |