CI: Bump golangci-lint to 2.0.2 (#103572)
This commit is contained in:
@@ -709,9 +709,9 @@ func getMultiAccessControlMetadata(c *contextmodel.ReqContext,
|
||||
return map[string]ac.Metadata{}
|
||||
}
|
||||
|
||||
if len(c.SignedInUser.GetPermissions()) == 0 {
|
||||
if len(c.GetPermissions()) == 0 {
|
||||
return map[string]ac.Metadata{}
|
||||
}
|
||||
|
||||
return ac.GetResourcesMetadata(c.Req.Context(), c.SignedInUser.GetPermissions(), prefix, resourceIDs)
|
||||
return ac.GetResourcesMetadata(c.Req.Context(), c.GetPermissions(), prefix, resourceIDs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user