Skip to content

Commit

Permalink
fix(#4906): 🐛 Fixed an issue with power users and permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Apr 15, 2023
1 parent 0069bfd commit 80884bc
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
Expand Up @@ -18,7 +18,7 @@ export class RadarrSettingsState {

@Action(LoadSettings)
public load({ setState }: StateContext<RadarrState>): Observable<RadarrState> {
const isAdmin = this.authService.isAdmin();
const isAdmin = this.authService.hasRole("Admin");
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
Expand Up @@ -18,7 +18,7 @@ export class SonarrSettingsState {

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

return combineLatest(calls).pipe(
Expand Down

0 comments on commit 80884bc

Please sign in to comment.