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 | 68db12378da077aafa1d27f5711733f65a89a6c9 (patch) | |
tree | 2a6aa21e9fb294e91f619a236f61cf70d00d0de9 | |
parent | If defaults_user_premium is false, don't give a user `premium_since: new Date` (diff) | |
download | server-68db12378da077aafa1d27f5711733f65a89a6c9.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(); |