aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-30 09:21:37 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-30 09:21:37 +0200
commit952433eae6cdf15e8615b4da682b81f4537b0ba0 (patch)
treed0adb161a3184fd6890df1eca8922f87ad300836 /core/js/share.js
parent46e47be78272b76c6c569a8f1589d78828d72ec1 (diff)
parent5899485ca17045e93528c29d1ed63b02192c4191 (diff)
downloadnextcloud-server-952433eae6cdf15e8615b4da682b81f4537b0ba0.tar.gz
nextcloud-server-952433eae6cdf15e8615b4da682b81f4537b0ba0.zip
Merge branch 'master' into move-aborted-upload-detection-into-plugin-master
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/share.js b/core/js/share.js
index f54f13c95e3..82f5da0baea 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -174,10 +174,10 @@ OC.Share={
var allowPublicUploadStatus = false;
$.each(data.shares, function(key, value) {
- if (allowPublicUploadStatus) {
+ if (value.share_type === OC.Share.SHARE_TYPE_LINK) {
+ allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false;
return true;
}
- allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false;
});
html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with')+'" />';