forked from baron/baron-sso
fix: 불필요한 역할 오버라이딩(Overriding real profile role) 로그 제거
This commit is contained in:
@@ -4019,9 +4019,11 @@ func (h *AuthHandler) resolveCurrentProfile(c *fiber.Ctx) (*domain.UserProfileRe
|
||||
if profile != nil {
|
||||
if isDev && mockRole != "" {
|
||||
normalizedMockRole := domain.NormalizeRole(mockRole)
|
||||
slog.Info("🔑 [AUTH] Overriding real profile role",
|
||||
"email", profile.Email, "originalRole", profile.Role, "overriddenRole", normalizedMockRole)
|
||||
profile.Role = normalizedMockRole
|
||||
if profile.Role != normalizedMockRole {
|
||||
slog.Info("🔑 [AUTH] Overriding real profile role",
|
||||
"email", profile.Email, "originalRole", profile.Role, "overriddenRole", normalizedMockRole)
|
||||
profile.Role = normalizedMockRole
|
||||
}
|
||||
}
|
||||
} else if isDev && mockRole != "" && token == "" && cookie == "" {
|
||||
normalizedMockRole := domain.NormalizeRole(mockRole)
|
||||
|
||||
Reference in New Issue
Block a user