mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-14 23:43:27 +00:00
refactor: make class fields of permissions guard read-only
They're only read and never written after the construction Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
6e0e63688b
commit
4e298cccfb
1 changed files with 3 additions and 3 deletions
|
@ -24,9 +24,9 @@ import { RequiredPermission } from './required-permission.enum';
|
|||
export class PermissionsGuard implements CanActivate {
|
||||
constructor(
|
||||
private readonly logger: ConsoleLoggerService,
|
||||
private reflector: Reflector,
|
||||
private permissionsService: PermissionsService,
|
||||
private noteService: NotesService,
|
||||
private readonly reflector: Reflector,
|
||||
private readonly permissionsService: PermissionsService,
|
||||
private readonly noteService: NotesService,
|
||||
) {
|
||||
this.logger.setContext(PermissionsGuard.name);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue