Browse Source

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

tags/v6.0.0alpha2
Bjoern Schiessle 10 years ago
parent
commit
642b064c5b
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      core/js/share.js

+ 1
- 3
core/js/share.js 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;
}
});


Loading…
Cancel
Save