mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
improve
This commit is contained in:
@@ -48,6 +48,7 @@ export class AuthGuard implements CanActivate {
|
||||
}
|
||||
|
||||
} else if ( pathname.startsWith('/home/gabinete-digital')) {
|
||||
console.log('gabinete');
|
||||
|
||||
if(this.p.userPermission(this.p.permissionList.Gabinete.access)) {
|
||||
return true;
|
||||
|
||||
@@ -22,6 +22,9 @@ export class LoginGuard implements CanActivate {
|
||||
if(SessionStore.exist && SessionStore.user.Inactivity && SessionStore.user.LoginPreference != 'Pin' ) {
|
||||
this.router.navigate(['/home/events']);
|
||||
return false
|
||||
} else if(SessionStore.exist && !SessionStore.user.Inactivity && SessionStore.user.LoginPreference == 'Pin' && SessionStore.forceToLoginWithForceToLogInWithPassword && !this.platform.is('desktop') && !this.platform.is('mobileweb')) {
|
||||
SessionStore.forceToLoginWithForceToLogInWithPassword = false
|
||||
return true
|
||||
} else if(SessionStore.exist && !SessionStore.hasPin && !this.platform.is('desktop') && !this.platform.is('mobileweb') ) {
|
||||
this.router.navigate(['/pin']);
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user