From a6051ba746b15bab5679b5908b06009e3e950cee Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 5 Jan 2020 09:09:09 +0100 Subject: [PATCH] Fix build --- client/src/app/core/auth/auth-user.model.ts | 4 ++-- 1 file 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 0843743c9..1447daead 100644 --- a/client/src/app/core/auth/auth-user.model.ts +++ b/client/src/app/core/auth/auth-user.model.ts @@ -1,6 +1,6 @@ import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage' import { UserRight } from '../../../../../shared/models/users/user-right.enum' -import { MyUser as ServerMyUserModel, MyUserSpecialPlaylist } from '../../../../../shared/models/users/user.model' +import { MyUser as ServerMyUserModel, User as ServerUserModel, MyUserSpecialPlaylist } from '../../../../../shared/models/users/user.model' // Do not use the barrel (dependency loop) import { hasUserRight, UserRole } from '../../../../../shared/models/users/user-role' import { User } from '../../shared/users/user.model' @@ -142,7 +142,7 @@ export class AuthUser extends User implements ServerMyUserModel { return hasUserRight(this.role, right) } - canManage (user: ServerMyUserModel) { + canManage (user: ServerUserModel) { const myRole = this.role if (myRole === UserRole.ADMINISTRATOR) return true -- 2.25.1