we can leave the loop if the permission of the link share was checked

This commit is contained in:
Bjoern Schiessle 2013-09-17 18:18:23 +02:00
parent d6771502f2
commit 642b064c5b
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}
});