AW-4641 Cleanup
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
07a87175b4
commit
e6e10c835e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user