session correction sidebar items 8

This commit is contained in:
alma 2025-04-18 15:02:57 +02:00
parent 3b35c2e71a
commit 4e19f9b3bd

View File

@ -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()
);