Skip to content

Commit

Permalink
fix(requests): 🐛 Power users can now set profiles and root folders wh…
Browse files Browse the repository at this point in the history
…en requesting
  • Loading branch information
tidusjar committed Dec 3, 2024
1 parent da6665d commit 138df1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ombi/ClientApp/src/app/state/radarr/radarr.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class RadarrSettingsState {

@Action(LoadSettings)
public load({ setState }: StateContext<RadarrState>): Observable<RadarrState> {
const isAdmin = this.authService.hasRole("Admin");
const isAdmin = this.authService.isAdmin();
const calls = isAdmin ? [this.settingsService.getRadarr()] : [of({})];

return combineLatest(calls).pipe(
Expand Down
2 changes: 1 addition & 1 deletion src/Ombi/ClientApp/src/app/state/sonarr/sonarr.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class SonarrSettingsState {

@Action(LoadSettings)
public load({ setState }: StateContext<SonarrState>): Observable<SonarrState> {
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(
Expand Down

0 comments on commit 138df1e

Please sign in to comment.