diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-05 09:09:09 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-05 09:09:43 +0100 |
commit | a6051ba746b15bab5679b5908b06009e3e950cee (patch) | |
tree | 2fc64e8cb5db3b7542d71f3a8b7ae3500cb4d86e | |
parent | 32c68d67d9125df62ead71668efca4da30132786 (diff) | |
download | PeerTube-a6051ba746b15bab5679b5908b06009e3e950cee.tar.gz PeerTube-a6051ba746b15bab5679b5908b06009e3e950cee.tar.zst PeerTube-a6051ba746b15bab5679b5908b06009e3e950cee.zip |
Fix build
-rw-r--r-- | client/src/app/core/auth/auth-user.model.ts | 4 |
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 @@ | |||
1 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage' | 1 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage' |
2 | import { UserRight } from '../../../../../shared/models/users/user-right.enum' | 2 | import { UserRight } from '../../../../../shared/models/users/user-right.enum' |
3 | import { MyUser as ServerMyUserModel, MyUserSpecialPlaylist } from '../../../../../shared/models/users/user.model' | 3 | import { 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) |
5 | import { hasUserRight, UserRole } from '../../../../../shared/models/users/user-role' | 5 | import { hasUserRight, UserRole } from '../../../../../shared/models/users/user-role' |
6 | import { User } from '../../shared/users/user.model' | 6 | import { 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 |