Skip to content
Snippets Groups Projects
Verified Commit 500be8aa authored by Lukas Maximilian Kimpel's avatar Lukas Maximilian Kimpel
Browse files

Update user

Add constructor
Re-add user role
Update AuthenticationGuard and AuthenticationService accordingly
parent 9ddcd7ce
1 merge request!87participant home screen api
...@@ -25,7 +25,7 @@ export class AuthenticationGuard implements CanActivate { ...@@ -25,7 +25,7 @@ export class AuthenticationGuard implements CanActivate {
// Allow access when user is logged in AND // Allow access when user is logged in AND
// the route doesn't require a specific role OR // the route doesn't require a specific role OR
// the user's role is one of the required roles // the user's role is one of the required roles
if (user && (!requiredRoles || requiredRoles.includes(user.role))) { if (user && (!requiredRoles || requiredRoles.includes(user.userRole))) {
return true; return true;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment