diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-17 18:18:23 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-17 18:18:23 +0200 |
commit | 642b064c5b98990f6ac0e3ba344db8cd1fe4d1f8 (patch) | |
tree | 523a1268e9696a0472172aa137cc030697bb20ec /core/js | |
parent | d6771502f21349d5393158eda6d2d16569fd60c3 (diff) | |
download | nextcloud-server-642b064c5b98990f6ac0e3ba344db8cd1fe4d1f8.tar.gz nextcloud-server-642b064c5b98990f6ac0e3ba344db8cd1fe4d1f8.zip |
we can leave the loop if the permission of the link share was checked
Diffstat (limited to 'core/js')
-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 250f410072c..641252a4d78 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; } }); |