From 46757b477c1adb5f98060d15998a3852e18902a6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Jun 2017 11:01:45 +0200 Subject: Fix client compilation --- client/src/app/core/auth/auth-user.model.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/src/app/core') diff --git a/client/src/app/core/auth/auth-user.model.ts b/client/src/app/core/auth/auth-user.model.ts index f827bd6ca..1a31a7834 100644 --- a/client/src/app/core/auth/auth-user.model.ts +++ b/client/src/app/core/auth/auth-user.model.ts @@ -1,4 +1,5 @@ // Do not use the barrel (dependency loop) +import { UserRole } from '../../../../../shared/models/user.model' import { User } from '../../shared/users/user.model'; export class AuthUser extends User { @@ -20,7 +21,7 @@ export class AuthUser extends User { id: parseInt(localStorage.getItem(this.KEYS.ID)), username: localStorage.getItem(this.KEYS.USERNAME), email: localStorage.getItem(this.KEYS.EMAIL), - role: localStorage.getItem(this.KEYS.ROLE), + role: localStorage.getItem(this.KEYS.ROLE) as UserRole, displayNSFW: localStorage.getItem(this.KEYS.DISPLAY_NSFW) === 'true' }, Tokens.load() @@ -41,7 +42,7 @@ export class AuthUser extends User { constructor(userHash: { id: number, username: string, - role: string, + role: UserRole, email: string, displayNSFW: boolean }, hashTokens: any) { -- cgit v1.2.3