[Trunk | Library]: connectHelper.ts: in method 'getCommunityFromDomain()', also return null when domain is 'admin'.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56379 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-07-05 12:11:04 +00:00
parent 9f9c2289e3
commit 39b63dca2b
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import {HttpParams} from '@angular/common/http';
export class ConnectHelper {
public static getCommunityFromDomain(domain: string): string{
// domain = "beta.egi.openaire.eu"; //for testing
// domain = "beta.egi.openaire.eu"; //for testing
if (domain.indexOf('openaire.eu') === -1) {
return null;
}
@ -15,7 +15,7 @@ export class ConnectHelper {
} else {
domain = domain.substr(0, domain.indexOf('.'));
}
if (domain === 'connect' || domain === 'explore' || domain === 'monitor'){
if (domain === 'connect' || domain === 'explore' || domain === 'monitor' || domain === 'admin'){
return null;
}
return domain;