AccessControl: verify metadata map is not null (#43743)

This commit is contained in:
J Guerreiro 2022-01-06 10:54:51 +00:00 committed by GitHub
parent c87b048af8
commit 6bbf85e2e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,6 +154,8 @@ func (hs *HTTPServer) getOrgUsersHelper(c *models.ReqContext, query *models.GetO
if errAC != nil {
hs.log.Error("Failed to get access control metadata", "error", errAC)
return filteredUsers, nil
} else if accessControlMetadata == nil {
return filteredUsers, nil
}