mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix
This commit is contained in:
@@ -57,7 +57,7 @@ export class AuthGuard implements CanActivate {
|
||||
}
|
||||
}
|
||||
else if(pathname.startsWith('/home/chat')) {
|
||||
if(this.p.userPermission(this.p.permissionList.Gabinete.access)) {
|
||||
if(this.p.userPermission(this.p.permissionList.Actions.access)) {
|
||||
return true;
|
||||
} else {
|
||||
this.router.navigate(['/login']);
|
||||
@@ -71,7 +71,7 @@ export class AuthGuard implements CanActivate {
|
||||
return false
|
||||
}
|
||||
} else if (pathname.startsWith('/home/events')) {
|
||||
if((this.p.userPermission([this.p.permissionList.Agenda.access]) || this.p.userPermission([this.p.permissionList.Gabinete.access]))) {
|
||||
if((this.p.userPermission(SessionStore.user.OwnerCalendars.length >= 1 || this.p.userPermission([this.p.permissionList.Gabinete.access]))) {
|
||||
return true
|
||||
} else {
|
||||
this.router.navigate(['/login']);
|
||||
|
||||
Reference in New Issue
Block a user