Fixed single-quote constraint

This commit is contained in:
Jean-François Morin
2024-02-22 16:07:32 -05:00
parent 64e3149e7e
commit f1cfe9991d

View File

@@ -749,8 +749,8 @@ export class MenuResolver implements Resolve<boolean> {
*/
createReportMenuSections() {
observableCombineLatest([
this.configurationDataService.findByPropertyName("contentreport.enable").pipe(
map((res: RemoteData<ConfigurationProperty>) => res.hasSucceeded && res.payload && res.payload.values[0] === "true")
this.configurationDataService.findByPropertyName('contentreport.enable').pipe(
map((res: RemoteData<ConfigurationProperty>) => res.hasSucceeded && res.payload && res.payload.values[0] === 'true')
),
this.authorizationService.isAuthorized(FeatureID.AdministratorOf)
]).subscribe(([isSiteAdmin]) => {