From 89f5905f342d0a9c98cb6bc16dec772e5eda9035 Mon Sep 17 00:00:00 2001 From: kun wang Date: Fri, 28 Apr 2017 18:44:44 +0800 Subject: [PATCH] Update for member guard. (#2182) --- .../src/app/shared/route/member-guard-activate.service.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ui_ng/src/app/shared/route/member-guard-activate.service.ts b/src/ui_ng/src/app/shared/route/member-guard-activate.service.ts index 865076a90..ebf96d593 100644 --- a/src/ui_ng/src/app/shared/route/member-guard-activate.service.ts +++ b/src/ui_ng/src/app/shared/route/member-guard-activate.service.ts @@ -33,9 +33,6 @@ export class MemberGuard implements CanActivate, CanActivateChild { let projectId = route.params['id']; this.sessionService.setProjectMembers([]); return new Promise((resolve, reject) => { - let projectId = route.params['id']; - this.sessionService.setProjectMembers([]); - return new Promise((resolve, reject) => { this.projectService.checkProjectMember(projectId) .subscribe( res=>{ @@ -50,7 +47,6 @@ export class MemberGuard implements CanActivate, CanActivateChild { this.router.navigate([CommonRoutes.HARBOR_DEFAULT]); return resolve(false); }); - }); }); }