From 91598123c9d296c86375bc263d9e1b295bf35023 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 11 Jan 2023 20:56:11 +1100 Subject: [PATCH] fix rights lol --- src/util/entities/User.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index 36b38ece..edc84dff 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -158,7 +158,7 @@ export class User extends BaseClass { premium_usage_flags: number = 0; @Column({ type: "bigint" }) - rights: string = Config.get().register.defaultRights; + rights: string; @OneToMany(() => Session, (session: Session) => session.user) sessions: Session[]; @@ -359,6 +359,7 @@ export class User extends BaseClass { ? new Date() : undefined, settings: settings, + rights: Config.get().register.defaultRights, }); user.validate();