From 138df1eb25c709c1939d01d4c9f9ece63f8e0fde Mon Sep 17 00:00:00 2001 From: TidusJar Date: Tue, 3 Dec 2024 21:01:16 +0000 Subject: [PATCH] fix(requests): :bug: Power users can now set profiles and root folders when requesting --- src/Ombi/ClientApp/src/app/state/radarr/radarr.state.ts | 2 +- src/Ombi/ClientApp/src/app/state/sonarr/sonarr.state.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ombi/ClientApp/src/app/state/radarr/radarr.state.ts b/src/Ombi/ClientApp/src/app/state/radarr/radarr.state.ts index 20bf3fe9c..b59faa624 100644 --- a/src/Ombi/ClientApp/src/app/state/radarr/radarr.state.ts +++ b/src/Ombi/ClientApp/src/app/state/radarr/radarr.state.ts @@ -18,7 +18,7 @@ export class RadarrSettingsState { @Action(LoadSettings) public load({ setState }: StateContext): Observable { - const isAdmin = this.authService.hasRole("Admin"); + const isAdmin = this.authService.isAdmin(); const calls = isAdmin ? [this.settingsService.getRadarr()] : [of({})]; return combineLatest(calls).pipe( diff --git a/src/Ombi/ClientApp/src/app/state/sonarr/sonarr.state.ts b/src/Ombi/ClientApp/src/app/state/sonarr/sonarr.state.ts index 218dd912c..38d2c35e9 100644 --- a/src/Ombi/ClientApp/src/app/state/sonarr/sonarr.state.ts +++ b/src/Ombi/ClientApp/src/app/state/sonarr/sonarr.state.ts @@ -18,7 +18,7 @@ export class SonarrSettingsState { @Action(LoadSettings) public load({ setState }: StateContext): Observable { - const isAdmin = this.authService.hasRole("Admin"); + const isAdmin = this.authService.isAdmin(); const calls = isAdmin ? [this.sonarrService.getVersion(), this.settingsService.getSonarr()] : [of(""), of({})]; return combineLatest(calls).pipe(