Merge branch 'stable-3.2' into stable-3.3

* stable-3.2:
  ForRef#check should permit internal users to read all refs
  Add Jacek Centkowski to developers
  Add support for Elasticsearch version 7.10.*
  Add support for Elasticsearch version 7.9.*
  Align http dependencies with elasticsearch-rest-client

Change-Id: I7515ca92f18a01931a79498d6c366cfb01fd743a
This commit is contained in:
Marco Miller
2020-12-21 12:08:00 -05:00
17 changed files with 60 additions and 17 deletions

View File

@@ -606,6 +606,10 @@ class RefControl {
private boolean can(RefPermission perm) throws PermissionBackendException {
switch (perm) {
case READ:
/* Internal users such as plugin users should be able to read all refs. */
if (getUser().isInternalUser()) {
return true;
}
if (refName.startsWith(Constants.R_TAGS)) {
return isTagVisible();
}