mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-06 05:01:13 -07:00
fix(requests): 🐛 Power users can now set profiles and root folders when requesting
This commit is contained in:
parent
da6665deb6
commit
138df1eb25
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ export class RadarrSettingsState {
|
||||||
|
|
||||||
@Action(LoadSettings)
|
@Action(LoadSettings)
|
||||||
public load({ setState }: StateContext<RadarrState>): Observable<RadarrState> {
|
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({})];
|
const calls = isAdmin ? [this.settingsService.getRadarr()] : [of({})];
|
||||||
|
|
||||||
return combineLatest(calls).pipe(
|
return combineLatest(calls).pipe(
|
||||||
|
|
|
@ -18,7 +18,7 @@ export class SonarrSettingsState {
|
||||||
|
|
||||||
@Action(LoadSettings)
|
@Action(LoadSettings)
|
||||||
public load({ setState }: StateContext<SonarrState>): Observable<SonarrState> {
|
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({})];
|
const calls = isAdmin ? [this.sonarrService.getVersion(), this.settingsService.getSonarr()] : [of(""), of({})];
|
||||||
|
|
||||||
return combineLatest(calls).pipe(
|
return combineLatest(calls).pipe(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue