we can leave the loop if the permission of the link share was checked
This commit is contained in:
parent
d6771502f2
commit
642b064c5b
|
@ -174,11 +174,9 @@ OC.Share={
|
|||
var allowPublicUploadStatus = false;
|
||||
|
||||
$.each(data.shares, function(key, value) {
|
||||
if (allowPublicUploadStatus) {
|
||||
return true;
|
||||
}
|
||||
if (value.share_type === OC.Share.SHARE_TYPE_LINK) {
|
||||
allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue