Fixed bug that prevented admin creation prompt from occuring in the settings

This commit is contained in:
Tzahi12345
2020-05-01 16:18:39 -04:00
parent da26d88ba9
commit 7661b1e79e
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ export class SettingsComponent implements OnInit {
if (res['success']) {
if (!this.initial_config['Advanced']['multi_user_mode'] && this.new_config['Advanced']['multi_user_mode']) {
// multi user mode was enabled, let's check if default admin account exists
this.postsService.checkAdminCreationStatus();
this.postsService.checkAdminCreationStatus(true);
}
// sets new config as old config
this.initial_config = JSON.parse(JSON.stringify(this.new_config));