Fix sidebar navigation not respecting user permissions

Sidebar nav items (Archives, Queue, Stats, Profiles, Maintenance,
  Projects, Inventory, Files) were visible to all users regardless of
  role permissions — only Settings was gated. Now each item is hidden
  when the user lacks the corresponding read permission. Printers
  remains always visible as the home page.

  Also adds missing inventory:read|create|update|delete to the frontend
  Permission type (existed in backend but was absent from the frontend
  type definition).
This commit is contained in:
maziggy
2026-02-28 14:39:10 +01:00
parent 90b9523998
commit f2f43b98a3
5 changed files with 91 additions and 6 deletions
File diff suppressed because one or more lines are too long
+4
View File
@@ -25,6 +25,7 @@
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<script type="module" crossorigin src="/assets/index-CxFtC4Kb.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DJjXosw8.css">
@@ -37,6 +38,9 @@
=======
<script type="module" crossorigin src="/assets/index-BfXsQTz2.js"></script>
>>>>>>> 1eeeb37 ( Updated commit message (now includes the test fix):)
=======
<script type="module" crossorigin src="/assets/index-rCstaUXR.js"></script>
>>>>>>> 65c904b ( Fix sidebar navigation not respecting user permissions)
<link rel="stylesheet" crossorigin href="/assets/index-BW78djlt.css">
>>>>>>> ce97a47 ( Add H2C dual nozzle variant O1C2 model support (#489))
</head>