diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-11 20:56:11 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-11 20:56:11 +1100 |
commit | 91598123c9d296c86375bc263d9e1b295bf35023 (patch) | |
tree | dd690b1664459eaf660d75eb3514281f17b2ccc0 | |
parent | If defaults_user_premium is false, don't give a user `premium_since: new Date` (diff) | |
download | server-91598123c9d296c86375bc263d9e1b295bf35023.tar.xz |
fix rights lol
-rw-r--r-- | src/util/entities/User.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |