diff options
-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 |