Bugs reported solved

This commit is contained in:
Eudes Inácio
2023-03-09 09:09:10 +01:00
parent 7c6bd9c0a4
commit 6c7a007812
16 changed files with 88 additions and 34 deletions
+4 -2
View File
@@ -18,6 +18,7 @@ import { Storage } from '@ionic/storage';
import { InitialsService } from './functions/initials.service';
import { PermissionService } from './permission.service';
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
@Injectable({
providedIn: 'root'
})
@@ -42,7 +43,8 @@ export class AuthService {
private storage: Storage,
private initialsService: InitialsService,
public p: PermissionService,
public ChatSystemService: ChatSystemService) {
public ChatSystemService: ChatSystemService,
private httpErroHandle: HttpErrorHandle) {
if (SessionStore.exist) {
if(this.p.userPermission(this.p.permissionList.Chat.access) == true ) {
@@ -72,7 +74,7 @@ export class AuthService {
this.SetSession(response, user)
}
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
} finally {
return response
}