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

This commit is contained in:
Bjoern Schiessle 2013-09-17 18:11:43 +02:00
parent 2e79aab0ce
commit d6771502f2
1 changed files with 3 additions and 1 deletions

View File

@ -177,7 +177,9 @@ OC.Share={
if (allowPublicUploadStatus) { if (allowPublicUploadStatus) {
return true; return true;
} }
if (value.share_type === OC.Share.SHARE_TYPE_LINK) {
allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false; allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false;
}
}); });
html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with')+'" />'; html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with')+'" />';