mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
verification on login page if user has permission to acess on chat
This commit is contained in:
@@ -113,10 +113,10 @@ export class LoginPage implements OnInit {
|
||||
console.log(this.p.userPermission(this.p.permissionList.Chat.access));
|
||||
|
||||
|
||||
/* if(this.p.userPermission(this.p.permissionList.Chat.access)){*/
|
||||
if(attempt.ChatData){
|
||||
await this.authService.loginChat(attempt.ChatData.data);
|
||||
await this.authService.loginToChatWs();
|
||||
//}
|
||||
}
|
||||
|
||||
this.getToken();
|
||||
SessionStore.setInativity(true);
|
||||
@@ -134,10 +134,10 @@ export class LoginPage implements OnInit {
|
||||
this.changeProfileService.run();
|
||||
|
||||
console.log(attempt.ChatData)
|
||||
/* if(this.p.userPermission(this.p.permissionList.Chat.access)){*/
|
||||
if(attempt.ChatData){
|
||||
await this.authService.loginChat(attempt.ChatData.data);
|
||||
await this.authService.loginToChatWs();
|
||||
//}
|
||||
}
|
||||
|
||||
this.getToken();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user