CI: Bump golangci-lint to 2.0.2 (#103572)
This commit is contained in:
@@ -48,7 +48,7 @@ func GetUserDirectPermissionCacheKey(user identity.Requester) string {
|
||||
}
|
||||
|
||||
func GetBasicRolePermissionCacheKey(role string, orgID int64) string {
|
||||
roleKey := strings.Replace(role, " ", "_", -1)
|
||||
roleKey := strings.ReplaceAll(role, " ", "_")
|
||||
roleKey = strings.ToLower(roleKey)
|
||||
return fmt.Sprintf("rbac-permissions-basic-role-%d-%s", orgID, roleKey)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user