diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-17 20:18:23 +0400 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-26 14:21:54 +0400 |
commit | d6fd22802dcb64689ba2ae862c92979975c8f364 (patch) | |
tree | 073bb50cc5cbcf7e6327407412c5cb8e2d9e1175 /core | |
parent | 342be991490ac05958f321ccb1dbe944363e1810 (diff) |
we can leave the loop if the permission of the link share was checked
Diffstat (limited to 'core')
-rw-r--r-- | core/js/share.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/js/share.js b/core/js/share.js index 0574e44f3c7..4664594e657 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -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; } }); |