[master]: Fix sandbox environement condition
This commit is contained in:
parent
1b870e7739
commit
ad0019251c
|
@ -13,7 +13,7 @@ import {Session} from "../openaireLibrary/login/utils/helper.class";
|
||||||
export class SandboxGuard extends AdminDashboardGuard {
|
export class SandboxGuard extends AdminDashboardGuard {
|
||||||
|
|
||||||
canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
|
canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree {
|
||||||
let sandbox = properties.environment === 'beta';;;;;
|
let sandbox = properties.environment === 'beta';
|
||||||
if(childRoute.data['researcher'] && childRoute.params.stakeholder && sandbox) {
|
if(childRoute.data['researcher'] && childRoute.params.stakeholder && sandbox) {
|
||||||
let errorCode = LoginErrorCodes.NOT_LOGIN;
|
let errorCode = LoginErrorCodes.NOT_LOGIN;
|
||||||
let alias = childRoute.params.stakeholder;
|
let alias = childRoute.params.stakeholder;
|
||||||
|
|
Loading…
Reference in New Issue