summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-11 20:56:11 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-01-11 20:56:11 +1100
commit91598123c9d296c86375bc263d9e1b295bf35023 (patch)
treedd690b1664459eaf660d75eb3514281f17b2ccc0
parentIf defaults_user_premium is false, don't give a user `premium_since: new Date` (diff)
downloadserver-91598123c9d296c86375bc263d9e1b295bf35023.tar.xz
fix rights lol
-rw-r--r--src/util/entities/User.ts3
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();