cleaning hard 2
This commit is contained in:
parent
e9a0dbfc4a
commit
cffac12811
@ -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
|
// Remove duplicates and return
|
||||||
const uniqueRoles = [...new Set(appRoles)];
|
const uniqueRoles = [...new Set(appRoles)];
|
||||||
console.log("Final mapped roles:", uniqueRoles);
|
console.log("Final mapped roles:", uniqueRoles);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user