Skip to content
Snippets Groups Projects
Commit 608181c1 authored by Jérémie BRISON's avatar Jérémie BRISON
Browse files

fix(guards) : fix access mode property

parent 78558865
No related branches found
No related tags found
3 merge requests!27Recette,!26Dev,!19Feat/admin edit structure
......@@ -4,7 +4,7 @@ import { UserRole } from '../enum/user-role.enum';
@Injectable()
export class RolesGuard implements CanActivate {
constructor(private reflector: Reflector) {}
constructor(protected reflector: Reflector) {}
canActivate(context: ExecutionContext): boolean {
const roles = this.reflector.get<string[]>('roles', context.getHandler());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment