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

@@ -436,8 +436,8 @@ export class PostsService implements CanActivate {
password: password}, this.httpOptions);
}
checkAdminCreationStatus() {
if (!this.config['Advanced']['multi_user_mode']) {
checkAdminCreationStatus(skip_check = false) {
if (!skip_check && !this.config['Advanced']['multi_user_mode']) {
return;
}
this.adminExists().subscribe(res => {