diff --git a/src/backend/model/database/sql/SQLConnection.ts b/src/backend/model/database/sql/SQLConnection.ts index 795385b0..69b86a02 100644 --- a/src/backend/model/database/sql/SQLConnection.ts +++ b/src/backend/model/database/sql/SQLConnection.ts @@ -96,6 +96,9 @@ export class SQLConnection { public static async init(): Promise { const connection = await this.getConnection(); + if (Config.Client.authenticationRequired !== true) { + return; + } // Adding enforced users to the db const userRepository = connection.getRepository(UserEntity); if (Array.isArray(Config.Server.Database.enforcedUsers) &&