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
This commit is contained in:
commit
6b1d70f148
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue