AW-4641 Cleanup
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Peter (extern) 2023-02-08 11:36:54 +01:00
parent 07a87175b4
commit e6e10c835e

View File

@ -17,7 +17,6 @@ export class HasRoleDirective implements OnInit, OnDestroy{
private sub: Subscription;
ngOnInit() {
this.sub = this.user$.subscribe((user) => {
console.log('fmHasRole', this.role);
if (user && user.claims[this.roleClaim]?.includes(this.role)) {
this.viewContainerRef$.createEmbeddedView(this.templateRef$);
this.hasView=true;