mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Fix startup without saved view permissions
This commit is contained in:
@@ -3,6 +3,7 @@ import { Injectable } from '@angular/core'
|
||||
import { combineLatest, Observable } from 'rxjs'
|
||||
import { tap } from 'rxjs/operators'
|
||||
import { PaperlessSavedView } from 'src/app/data/paperless-saved-view'
|
||||
import { PermissionsService } from '../permissions.service'
|
||||
import { AbstractPaperlessService } from './abstract-paperless-service'
|
||||
|
||||
@Injectable({
|
||||
@@ -11,8 +12,11 @@ import { AbstractPaperlessService } from './abstract-paperless-service'
|
||||
export class SavedViewService extends AbstractPaperlessService<PaperlessSavedView> {
|
||||
loading: boolean
|
||||
|
||||
constructor(http: HttpClient) {
|
||||
constructor(http: HttpClient, permissionService: PermissionsService) {
|
||||
super(http, 'saved_views')
|
||||
}
|
||||
|
||||
public initialize() {
|
||||
this.reload()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user