From 5a2020b706ddff32001bae7f8a9f0045eea35a08 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Thu, 21 Sep 2023 22:50:11 -0700
Subject: [PATCH] Remove owner/perms from consumption templates
---
docs/usage.md | 10 ++++++++++
.../consmption-templates-list.component.html | 10 ++++------
.../consmption-templates-list.component.ts | 16 +---------------
.../app/data/paperless-consumption-template.ts | 4 ++--
.../migrations/1039_consumptiontemplate.py | 10 ----------
src/documents/models.py | 10 +++++-----
src/documents/serialisers.py | 6 +-----
src/documents/views.py | 3 +--
8 files changed, 24 insertions(+), 45 deletions(-)
diff --git a/docs/usage.md b/docs/usage.md
index 62ec15f73..c80a5a2d2 100644
--- a/docs/usage.md
+++ b/docs/usage.md
@@ -290,6 +290,16 @@ Consumption templates can assign:
- Document owner
- View and / or edit permissions to users or groups
+### Consumption template permissions
+
+All users who have application permissions for editing consumption templates can see the same set
+of templates. In other words, templates themselves intentionally do not have an owner or permissions.
+
+Given their potentially far-reaching capabilities, you may want to restrict access to templates.
+
+Upon migration, existing installs will grant access to consumption templates to users who can add
+documents (and superusers who can always access all parts of the app).
+
### Title placeholders
Consumption template titles can include placeholders, _only for items that are assigned within the template_.
diff --git a/src-ui/src/app/components/manage/consmption-templates-list/consmption-templates-list.component.html b/src-ui/src/app/components/manage/consmption-templates-list/consmption-templates-list.component.html
index 472097460..098c2af41 100644
--- a/src-ui/src/app/components/manage/consmption-templates-list/consmption-templates-list.component.html
+++ b/src-ui/src/app/components/manage/consmption-templates-list/consmption-templates-list.component.html
@@ -11,22 +11,20 @@