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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user