diff --git a/searchPages/searchUtils/portal-search-result.component.html b/searchPages/searchUtils/portal-search-result.component.html index 24b5ea7a..f877abdc 100644 --- a/searchPages/searchUtils/portal-search-result.component.html +++ b/searchPages/searchUtils/portal-search-result.component.html @@ -18,52 +18,19 @@ {{result.visibility.toLowerCase()}} -->
- -
- {{(result.title)?result.title:result.shortTitle}} logo - {{(result.title)?result.title:result.shortTitle}} logo - - - -
+
- -
- {{(result.title)?result.title:result.shortTitle}} logo - {{(result.title)?result.title:result.shortTitle}} logo - - - -
+
+
+ +
@@ -120,4 +90,24 @@ You will be navigated to a new tab. Are you sure that you want to proceed?
- + +
+ {{(result.title)?result.title:result.shortTitle}} logo + {{(result.title)?result.title:result.shortTitle}} logo + + + +
+
diff --git a/searchPages/searchUtils/portal-search-result.component.ts b/searchPages/searchUtils/portal-search-result.component.ts index 799afe7d..a9b4d145 100644 --- a/searchPages/searchUtils/portal-search-result.component.ts +++ b/searchPages/searchUtils/portal-search-result.component.ts @@ -50,7 +50,10 @@ export class PortalSearchResultComponent implements OnInit{ this.directLink = value; }); } - + + hasPermission(result: CommunityInfo & StakeholderInfo) { + return this.type === "community" || result.visibility === "PUBLIC" || result.isManager || result.isMember; + } getProductionPrefix(id:string): string { return (this.properties.environment == "production") ? "" : "beta.";