From 757f0da370a992cf07afd20d3829b2748c76cc15 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 Oct 2017 17:27:06 +0200 Subject: Add tests to user roles --- client/src/app/core/auth/auth-user.model.ts | 2 +- client/src/app/shared/forms/form-validators/user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src') diff --git a/client/src/app/core/auth/auth-user.model.ts b/client/src/app/core/auth/auth-user.model.ts index 085b763ec..7b6c8816f 100644 --- a/client/src/app/core/auth/auth-user.model.ts +++ b/client/src/app/core/auth/auth-user.model.ts @@ -123,7 +123,7 @@ export class AuthUser extends User { this.tokens.refreshToken = refreshToken } - hasRight(right: UserRight) { + hasRight (right: UserRight) { return hasUserRight(this.role, right) } diff --git a/client/src/app/shared/forms/form-validators/user.ts b/client/src/app/shared/forms/form-validators/user.ts index e7473b75b..9d200649c 100644 --- a/client/src/app/shared/forms/form-validators/user.ts +++ b/client/src/app/shared/forms/form-validators/user.ts @@ -32,6 +32,6 @@ export const USER_VIDEO_QUOTA = { export const USER_ROLE = { VALIDATORS: [ Validators.required ], MESSAGES: { - 'required': 'User role is required.', + 'required': 'User role is required.' } } -- cgit v1.2.3