Roo.bootstrap.MessageBox.alert("Error", "Admin accounts have not been created - use the old admin at present");
- // admin company has been created - create the user..
- if (Pman.Login.authUser.company_id_id* 1 > 0) {
- this.openSystemCreateUser();
+ // create company if company_id is -1
+ if (Pman.Login.authUser.company_id* 1 < 0) {
+ this.openSystemCreateCompany();
return;
}
- this.openSystemCreateCompany();
- /// create account..
+ // create user if id is -1
+ if (Pman.Login.authUser.id* 1 < 0) {
+ this.openSystemCreateUser();
+ return;
+ }