mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
fix rights lol
This commit is contained in:
parent
b0e2b450af
commit
68db12378d
@ -158,7 +158,7 @@ export class User extends BaseClass {
|
|||||||
premium_usage_flags: number = 0;
|
premium_usage_flags: number = 0;
|
||||||
|
|
||||||
@Column({ type: "bigint" })
|
@Column({ type: "bigint" })
|
||||||
rights: string = Config.get().register.defaultRights;
|
rights: string;
|
||||||
|
|
||||||
@OneToMany(() => Session, (session: Session) => session.user)
|
@OneToMany(() => Session, (session: Session) => session.user)
|
||||||
sessions: Session[];
|
sessions: Session[];
|
||||||
@ -359,6 +359,7 @@ export class User extends BaseClass {
|
|||||||
? new Date()
|
? new Date()
|
||||||
: undefined,
|
: undefined,
|
||||||
settings: settings,
|
settings: settings,
|
||||||
|
rights: Config.get().register.defaultRights,
|
||||||
});
|
});
|
||||||
|
|
||||||
user.validate();
|
user.validate();
|
||||||
|
Loading…
Reference in New Issue
Block a user