From 5f7c4b1e40b1d64ccb2141bb0324900471900a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Sun, 26 Jan 2025 00:27:49 +0200 Subject: [PATCH] Rename private visibility to secret --- README.md | 2 +- inventory-app/inventory.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e65cf27..3609748 100644 --- a/README.md +++ b/README.md @@ -7,5 +7,5 @@ |Group|Description| |-----|-----------| |k-space:inventory:audit|Update last time item information confirmed to be accurate| -|k-space:inventory:edit|Edit all items that are not keys. Browse items with private visibility.| +|k-space:inventory:edit|Edit all items that are not keys. Browse items with secret visibility.| |k-space:inventory:keys|Edit keys| diff --git a/inventory-app/inventory.py b/inventory-app/inventory.py index bd8748d..420630c 100644 --- a/inventory-app/inventory.py +++ b/inventory-app/inventory.py @@ -127,7 +127,7 @@ class InventoryForm(Form): owner = FormField(MemberForm, label="Owner") user = FormField(MemberForm, label="Current User") usable = BooleanField("Usable") - visibility = SelectField("Visibility", choices=['public', 'unlisted', 'private'], default='unlisted') + visibility = SelectField("Visibility", choices=['public', 'unlisted', 'secret'], default='unlisted') class HardwareForm(Form): serial = StringField("Serial Number") @@ -444,7 +444,7 @@ def view_inventory(slug=None): can_edit_all = "k-space:inventory:edit" in login_user.get("groups", []) v = ["public", "unlisted"] if can_edit_all: - v.append("private") + v.append("secret") q.update({ "$or": [ {"inventory.visibility": {"$in": v}},