check only permission from link-share to decide if public upload is enabled or disabled

remotes/origin/stable6
Bjoern Schiessle 12 years ago
parent 2e79aab0ce
commit d6771502f2
  1. 4
      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')+'" />';

Loading…
Cancel
Save