mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 03:05:19 -04: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 {
|
export class PermissionsGuard implements CanActivate {
|
||||||
constructor(
|
constructor(
|
||||||
private readonly logger: ConsoleLoggerService,
|
private readonly logger: ConsoleLoggerService,
|
||||||
private reflector: Reflector,
|
private readonly reflector: Reflector,
|
||||||
private permissionsService: PermissionsService,
|
private readonly permissionsService: PermissionsService,
|
||||||
private noteService: NotesService,
|
private readonly noteService: NotesService,
|
||||||
) {
|
) {
|
||||||
this.logger.setContext(PermissionsGuard.name);
|
this.logger.setContext(PermissionsGuard.name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue