import {
User as UserServerModel,
UserRole,
- VideoChannel
+ VideoChannel,
+ UserRight,
+ hasUserRight
} from '../../../../../shared'
export type UserConstructorHash = {
}
}
- isAdmin () {
- return this.role === 'admin'
+ hasRight (right: UserRight) {
+ return hasUserRight(this.role, right)
}
}