fixed user status not taken in account during import
MODIFY
src/async-task/tasks/ImportHelper.ts
src/async-task/tasks/ImportHelper.ts
@@ -120,7 +120,7 @@ export default class ImportHelper {
// Save the new User
newUser.id = await UserStorage.saveUser(tenant, newUser);
await UserStorage.saveUserRole(tenant, newUser.id, UserRole.BASIC);
- await UserStorage.saveUserStatus(tenant, newUser.id, UserStatus.PENDING);
+ await UserStorage.saveUserStatus(tenant, newUser.id, importedUser.importedData.autoActivateUserAtImport ? UserStatus.ACTIVE : UserStatus.PENDING);
await this.sendNotifications(tenant, newUser);
return newUser;
}

MODIFY
src/types/User.ts
src/types/User.ts
@@ -70,7 +70,7 @@ export interface ImportedUser {
email: string;
importedBy?: string;
importedOn?: Date;
- status?: ImportStatus
+ status?: ImportStatus;
errorDescription?: string;
importedData?: {
autoActivateUserAtImport: boolean;

fixed user status not taken in account during import