relocate special roles to api request

This commit is contained in:
rubikscraft
2022-03-24 19:56:26 +01:00
parent 25b85c00e0
commit 95c8f630f1
33 changed files with 284 additions and 156 deletions

View File

@@ -1,4 +1,3 @@
import { Roles } from 'picsur-shared/dist/dto/roles.dto';
import { EUser } from 'picsur-shared/dist/entities/user.entity';
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
@@ -14,7 +13,7 @@ export class EUserBackend extends EUser {
override username: string;
@Column('text', { nullable: false, array: true })
override roles: Roles;
override roles: string[];
@Column({ nullable: false, select: false })
override password?: string;