From f461485aa0a06071b31101cfe32cb829f78d5a81 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 13 Nov 2022 22:58:07 -0800 Subject: [PATCH] frontend permissions dialogs --- src-ui/src/app/app-routing.module.ts | 2 +- .../app-frame/app-frame.component.html | 2 +- .../group-edit-dialog.component.html | 2 +- .../group-edit-dialog.component.ts | 2 +- .../user-edit-dialog.component.html | 20 +++--- .../user-edit-dialog.component.ts | 8 +-- .../permissions-select.component.html | 27 ++++--- .../permissions-select.component.ts | 71 ++++++++++++++++--- .../manage/settings/settings.component.ts | 36 ++++++++-- src-ui/src/app/data/paperless-user.ts | 2 +- .../src/app/services/permissions.service.ts | 29 ++++---- src/documents/views.py | 2 +- src/paperless/serialisers.py | 43 +++++------ 13 files changed, 164 insertions(+), 82 deletions(-) diff --git a/src-ui/src/app/app-routing.module.ts b/src-ui/src/app/app-routing.module.ts index 211afc6ac..1627fc72d 100644 --- a/src-ui/src/app/app-routing.module.ts +++ b/src-ui/src/app/app-routing.module.ts @@ -127,7 +127,7 @@ const routes: Routes = [ data: { requiredPermission: { action: PermissionAction.View, - type: PermissionType.Log, + type: PermissionType.Admin, }, }, }, diff --git a/src-ui/src/app/components/app-frame/app-frame.component.html b/src-ui/src/app/components/app-frame/app-frame.component.html index ab8b7f2a5..55dfc9890 100644 --- a/src-ui/src/app/components/app-frame/app-frame.component.html +++ b/src-ui/src/app/components/app-frame/app-frame.component.html @@ -163,7 +163,7 @@  File Tasks{{tasksService.failedFileTasks.length}} -