mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[CST-5307] disable cache when checking CanClaimItem authorization feature
This commit is contained in:
@@ -40,7 +40,7 @@ export class PersonPageClaimButtonComponent implements OnInit {
|
||||
}
|
||||
|
||||
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)
|
||||
).subscribe((isAuthorized: boolean) => {
|
||||
this.claimable$.next(isAuthorized);
|
||||
|
Reference in New Issue
Block a user