diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/core/auth/auth-user.model.ts | 2 | ||||
-rw-r--r-- | client/src/app/shared/forms/form-validators/user.ts | 2 |
2 files changed, 2 insertions, 2 deletions
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 { | |||
123 | this.tokens.refreshToken = refreshToken | 123 | this.tokens.refreshToken = refreshToken |
124 | } | 124 | } |
125 | 125 | ||
126 | hasRight(right: UserRight) { | 126 | hasRight (right: UserRight) { |
127 | return hasUserRight(this.role, right) | 127 | return hasUserRight(this.role, right) |
128 | } | 128 | } |
129 | 129 | ||
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 = { | |||
32 | export const USER_ROLE = { | 32 | export const USER_ROLE = { |
33 | VALIDATORS: [ Validators.required ], | 33 | VALIDATORS: [ Validators.required ], |
34 | MESSAGES: { | 34 | MESSAGES: { |
35 | 'required': 'User role is required.', | 35 | 'required': 'User role is required.' |
36 | } | 36 | } |
37 | } | 37 | } |