fix: permissions not restricted for certain management pages / actions (#1219)

* fix: restrict parts of manage navigation to admins

* fix: restrict stats cards on manage home page

* fix: restrict access to amount of certain stats for manage home

* fix: restrict visibility of board create button

* fix: restrict access to integration pages

* fix: restrict access to tools pages for admins

* fix: restrict access to user and group pages

* test: adjust tests to match permission changes for routes

* fix: remove certain pages from spotlight without admin

* fix: app management not restricted
This commit is contained in:
Meier Lukas
2024-10-05 17:03:32 +02:00
committed by GitHub
parent 770768eb21
commit 1421ccc917
28 changed files with 756 additions and 322 deletions

View File

@@ -8,6 +8,7 @@ export default defineConfig({
setupFiles: ["./vitest.setup.ts"],
environment: "jsdom",
include: ["**/*.spec.ts"],
clearMocks: true,
poolOptions: {
threads: {
singleThread: false,
@@ -18,7 +19,7 @@ export default defineConfig({
reporter: ["html", "json-summary", "json"],
all: true,
exclude: ["apps/nextjs/.next/"],
reportOnFailure: true
reportOnFailure: true,
},
exclude: [...configDefaults.exclude, "apps/nextjs/.next"],