summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-07-05 13:52:33 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-07-05 13:52:33 +0200
commit59b700a5504549508ecde1f83469824840f55d90 (patch)
tree90f867b7982d2b219713e6daf52576189a09fecb /core/js
parent13991be5ce6e318670b84458c2cdaa6878ad63cc (diff)
parent9c855f7b3d97b312095ba53a08fe45b71ca06c98 (diff)
downloadnextcloud-server-59b700a5504549508ecde1f83469824840f55d90.tar.gz
nextcloud-server-59b700a5504549508ecde1f83469824840f55d90.zip
Merge branch 'master' into fixing-3934-master
Conflicts: core/js/share.js
Diffstat (limited to 'core/js')
-rw-r--r--core/js/share.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 778a9f8e201..ced1e0aa8ca 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -163,10 +163,10 @@ OC.Share={
var allowPublicUploadStatus = false;
$.each(data.shares, function(key, value) {
- if (allowPublicUploadStatus) {
- return true;
- }
- allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false;
+ if (allowPublicUploadStatus) {
+ return true;
+ }
+ allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false;
});
html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with')+'" />';
@@ -181,7 +181,7 @@ OC.Share={
html += '<div id="linkPass">';
html += '<input id="linkPassText" type="password" placeholder="'+t('core', 'Password')+'" />';
html += '</div>';
- if (itemType == 'folder') {
+ if (itemType == 'folder' && (possiblePermissions & OC.PERMISSION_CREATE)) {
html += '<div id="allowPublicUploadWrapper" style="display:none;">';
html += '<input type="checkbox" value="1" name="allowPublicUpload" id="sharingDialogAllowPublicUpload"' + ((allowPublicUploadStatus) ? 'checked="checked"' : '') + ' />';
html += '<label for="sharingDialogAllowPublicUpload">' + t('core', 'Allow Public Upload') + '</label>';