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

This commit is contained in:
Peter Bastiani 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; private sub: Subscription;
ngOnInit() { ngOnInit() {
this.sub = this.user$.subscribe((user) => { this.sub = this.user$.subscribe((user) => {
console.log('fmHasRole', this.role);
if (user && user.claims[this.roleClaim]?.includes(this.role)) { if (user && user.claims[this.roleClaim]?.includes(this.role)) {
this.viewContainerRef$.createEmbeddedView(this.templateRef$); this.viewContainerRef$.createEmbeddedView(this.templateRef$);
this.hasView=true; this.hasView=true;