check notification and inactivity

This commit is contained in:
Peter Maquiran
2023-09-28 09:02:15 +01:00
parent b46d179dfe
commit 8de8a35bfc
11 changed files with 93 additions and 60 deletions
+4 -7
View File
@@ -14,9 +14,6 @@ export class AuthGuard implements CanActivate {
constructor(
private router:Router,
public p: PermissionService,
private RouteService: RouteService,
private FirstEnterService: FirstEnterService,
private alertController: AlertController,
){}
canActivate(
@@ -31,7 +28,7 @@ export class AuthGuard implements CanActivate {
} else {
this.router.navigate(['/']);
}
return false
} else {
@@ -39,15 +36,15 @@ export class AuthGuard implements CanActivate {
if(pathname.startsWith('/home/agenda')) {
if(this.p.userPermission(this.p.permissionList.Agenda.access)) {
return true;
} else {
this.router.navigate(['/login']);
return false;
}
} else if ( pathname.startsWith('/home/gabinete-digital')) {
if(this.p.userPermission(this.p.permissionList.Gabinete.access)) {
return true;