[CST-5307] disable cache when checking CanClaimItem authorization feature

This commit is contained in:
Giuseppe Digilio
2022-06-08 12:58:19 +02:00
parent e2abea7373
commit 8bdb4b7be3

View File

@@ -40,7 +40,7 @@ export class PersonPageClaimButtonComponent implements OnInit {
} }
ngOnInit(): void { ngOnInit(): void {
this.authorizationService.isAuthorized(FeatureID.CanClaimItem, this.object._links.self.href).pipe( this.authorizationService.isAuthorized(FeatureID.CanClaimItem, this.object._links.self.href, null, false).pipe(
take(1) take(1)
).subscribe((isAuthorized: boolean) => { ).subscribe((isAuthorized: boolean) => {
this.claimable$.next(isAuthorized); this.claimable$.next(isAuthorized);