diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index 0ffdf4ed..23d7e02a 100644 --- a/app/api/auth/[...nextauth]/route.ts +++ b/app/api/auth/[...nextauth]/route.ts @@ -317,14 +317,6 @@ function mapToApplicationRoles(keycloakRoles: string[]): string[] { } } - // DEVELOPMENT OVERRIDE - Comment out in production - // Assign all roles for testing - if (process.env.NODE_ENV === 'development') { - // Add specific development testing roles - appRoles = ['user', 'admin', 'expression', 'mediation', 'coding', 'dataintelligence', 'entrepreneurship']; - console.log("DEVELOPMENT MODE: Using all roles for testing"); - } - // Remove duplicates and return const uniqueRoles = [...new Set(appRoles)]; console.log("Final mapped roles:", uniqueRoles);