fix(requests): 🐛 Power users can now set profiles and root folders when requesting

This commit is contained in:
TidusJar 2024-12-03 21:01:16 +00:00
parent da6665deb6
commit 138df1eb25
2 changed files with 2 additions and 2 deletions

View file

@ -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(

View file

@ -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(