Skip to content

Commit 525a206

Browse files
no message
1 parent 478079f commit 525a206

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/app/shared/guards/administration-guard.service.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class AdministrationGlobalGuard implements CanActivate {
1414

1515
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
1616
let islogged = false;
17-
await this.userService.handleIsLogged(state.url).then(res => islogged = res);
17+
await this.userService.handleIsLogged().then(res => islogged = res);
1818
if (!islogged) { return false; }
1919

2020
if (this.userService.IsAdmin()) {
@@ -34,7 +34,8 @@ export class AdministrationProjectGuard implements CanActivate {
3434

3535
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
3636
let islogged = false;
37-
await this.userService.handleIsLogged(state.url).then(res => islogged = res);
37+
await this.userService.
38+
.then(res => islogged = res);
3839
if (!islogged) { return false; }
3940

4041
await this.userService.AnyLocalPermissions();
@@ -58,7 +59,7 @@ export class AdministrationGuard implements CanActivate {
5859

5960
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
6061
let islogged = false;
61-
await this.userService.handleIsLogged(state.url).then(res => islogged = res);
62+
await this.userService.handleIsLogged().then(res => islogged = res);
6263
if (!islogged) { return false; }
6364

6465
await this.userService.AnyLocalPermissions();

src/app/shared/guards/audit-guard.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class AuditCreateGuard implements CanActivate {
1313

1414
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
1515
let islogged = false;
16-
await this.userService.handleIsLogged(state.url).then(res => islogged = res);
16+
await this.userService.handleIsLogged().then(res => islogged = res);
1717
if (!islogged) { return false; }
1818

1919
if ((!this.userService.handleIsLogged() || !this.userService.IsAuditAdmin())) {
@@ -35,7 +35,7 @@ export class AuditDashboardGuard implements CanActivate {
3535

3636
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
3737
let islogged = false;
38-
await this.userService.handleIsLogged(state.url).then(res => islogged = res);
38+
await this.userService.handleIsLogged().then(res => islogged = res);
3939
if (!islogged) { return false; }
4040

4141
if (!this.userService.IsAuditor() && !this.userService.IsManager() && !this.userService.IsAuditAdmin()) {
@@ -57,7 +57,7 @@ export class AuditProjectGuard implements CanActivate {
5757

5858
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
5959
let islogged = false;
60-
await this.userService.handleIsLogged(state.url).then(res => islogged = res);
60+
await this.userService.handleIsLogged().then(res => islogged = res);
6161
if (!islogged) { return false; }
6262

6363
if (isNaN(+route.params['projectId'])) {

src/app/shared/guards/can-activate-customers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class CustomerDashboardGuard implements CanActivate {
1515

1616
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
1717
let islogged = false;
18-
await this.userService.handleIsLogged(state.url).then(res => islogged = res);
18+
await this.userService.handleIsLogged().then(res => islogged = res);
1919
if (!islogged) { return false; }
2020

2121
if (!this.userService.IsHead()
@@ -40,7 +40,7 @@ export class CustomerCreateGuard implements CanActivate {
4040

4141
async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {
4242
let islogged = false;
43-
await this.userService.handleIsLogged(state.url).then(res => islogged = res);
43+
await this.userService.handleIsLogged().then(res => islogged = res);
4444
if (!islogged) { return false; }
4545

4646
if (!this.userService.IsHead() && !this.userService.IsUnitCoordinator()) {

0 commit comments

Comments
 (0)