aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-05 09:09:09 +0100
committerChocobozzz <me@florianbigard.com>2020-01-05 09:09:43 +0100
commita6051ba746b15bab5679b5908b06009e3e950cee (patch)
tree2fc64e8cb5db3b7542d71f3a8b7ae3500cb4d86e /client/src/app
parent32c68d67d9125df62ead71668efca4da30132786 (diff)
downloadPeerTube-a6051ba746b15bab5679b5908b06009e3e950cee.tar.gz
PeerTube-a6051ba746b15bab5679b5908b06009e3e950cee.tar.zst
PeerTube-a6051ba746b15bab5679b5908b06009e3e950cee.zip
Fix build
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/core/auth/auth-user.model.ts4
1 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 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 @@
1import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage' 1import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage'
2import { UserRight } from '../../../../../shared/models/users/user-right.enum' 2import { UserRight } from '../../../../../shared/models/users/user-right.enum'
3import { MyUser as ServerMyUserModel, MyUserSpecialPlaylist } from '../../../../../shared/models/users/user.model' 3import { MyUser as ServerMyUserModel, User as ServerUserModel, MyUserSpecialPlaylist } from '../../../../../shared/models/users/user.model'
4// Do not use the barrel (dependency loop) 4// Do not use the barrel (dependency loop)
5import { hasUserRight, UserRole } from '../../../../../shared/models/users/user-role' 5import { hasUserRight, UserRole } from '../../../../../shared/models/users/user-role'
6import { User } from '../../shared/users/user.model' 6import { User } from '../../shared/users/user.model'
@@ -142,7 +142,7 @@ export class AuthUser extends User implements ServerMyUserModel {
142 return hasUserRight(this.role, right) 142 return hasUserRight(this.role, right)
143 } 143 }
144 144
145 canManage (user: ServerMyUserModel) { 145 canManage (user: ServerUserModel) {
146 const myRole = this.role 146 const myRole = this.role
147 147
148 if (myRole === UserRole.ADMINISTRATOR) return true 148 if (myRole === UserRole.ADMINISTRATOR) return true