fix and update
This commit is contained in:
@@ -17,6 +17,7 @@ export interface AdminRequestUser {
|
||||
canViewUsers: boolean;
|
||||
canManageSettings: boolean;
|
||||
canVerifyUsers: boolean;
|
||||
canModerateChats: boolean;
|
||||
roles: string[];
|
||||
permissions: string[];
|
||||
}
|
||||
@@ -60,6 +61,7 @@ export class AdminGuard implements CanActivate {
|
||||
canManageSettings: Boolean(profile.canManageSettings),
|
||||
canViewUsers: Boolean(profile.canViewUsers),
|
||||
canVerifyUsers: Boolean(profile.canVerifyUsers),
|
||||
canModerateChats: Boolean(profile.canModerateChats),
|
||||
roles: profile.roles ?? [],
|
||||
permissions: profile.permissions ?? []
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user