From 82856fa764bc5dbfaf520165cf6a4a57fdbe92d8 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Thu, 28 Jul 2022 04:12:04 +0200 Subject: [PATCH] Don't render element if no roles are passed --- console/src/app/directives/has-role/has-role.directive.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/console/src/app/directives/has-role/has-role.directive.ts b/console/src/app/directives/has-role/has-role.directive.ts index 65e6a4fe177..e52a2c2548b 100644 --- a/console/src/app/directives/has-role/has-role.directive.ts +++ b/console/src/app/directives/has-role/has-role.directive.ts @@ -17,11 +17,6 @@ export class HasRoleDirective { this.hasView = false; } }); - } else { - if (!this.hasView) { - this.viewContainerRef.clear(); - this.viewContainerRef.createEmbeddedView(this.templateRef); - } } }