mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-13 07:54:40 +00:00
Don't render element if no roles are passed
This commit is contained in:
@@ -17,11 +17,6 @@ export class HasRoleDirective {
|
||||
this.hasView = false;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if (!this.hasView) {
|
||||
this.viewContainerRef.clear();
|
||||
this.viewContainerRef.createEmbeddedView(this.templateRef);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user