Merge pull request #4887 from owncloud/sharing_disable_public_upload

check only permission from link-share to decide if public upload is enabled or disabled
remotes/origin/stable6
Björn Schießle 13 years ago
commit 6b1d70f148
  1. 4
      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')+'" />';

Loading…
Cancel
Save