summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-09-17 18:18:23 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-09-17 18:18:23 +0200
commit642b064c5b98990f6ac0e3ba344db8cd1fe4d1f8 (patch)
tree523a1268e9696a0472172aa137cc030697bb20ec /core/js
parentd6771502f21349d5393158eda6d2d16569fd60c3 (diff)
downloadnextcloud-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.js4
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;
}
});