summary refs log tree commit diff
diff options
context:
space:
mode:
-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();