mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-16 21:55:37 -05:00
Refactor frontend data models
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
import { ObjectWithPermissions } from '../data/object-with-permissions'
|
||||
import { PaperlessUser } from '../data/paperless-user'
|
||||
import { User } from '../data/user'
|
||||
|
||||
export enum PermissionAction {
|
||||
Add = 'add',
|
||||
@@ -34,9 +34,9 @@ export enum PermissionType {
|
||||
})
|
||||
export class PermissionsService {
|
||||
private permissions: string[]
|
||||
private currentUser: PaperlessUser
|
||||
private currentUser: User
|
||||
|
||||
public initialize(permissions: string[], currentUser: PaperlessUser) {
|
||||
public initialize(permissions: string[], currentUser: User) {
|
||||
this.permissions = permissions
|
||||
this.currentUser = currentUser
|
||||
}
|
||||
|
Reference in New Issue
Block a user