session correction sidebar items 8
This commit is contained in:
parent
3b35c2e71a
commit
4e19f9b3bd
@ -107,7 +107,7 @@ export const authOptions: NextAuthOptions = {
|
||||
console.log('Raw roles from Keycloak:', roles);
|
||||
|
||||
// Clean up roles by removing ROLE_ prefix and converting to lowercase
|
||||
const cleanRoles = roles.map(role =>
|
||||
const cleanRoles = roles.map((role: string) =>
|
||||
role.replace(/^ROLE_/, '').toLowerCase()
|
||||
);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user