From df93c5f0bf096e4cbe1c7993d44eda49ae9072fc Mon Sep 17 00:00:00 2001 From: Darkdusk Date: Mon, 9 Mar 2026 13:18:24 +0100 Subject: [PATCH 01/10] =?UTF-8?q?Changed=20the=20button=20to=20only=20show?= =?UTF-8?q?=20if=20the=20user=20is=20admin=20or=20higher=20role.=20Also=20?= =?UTF-8?q?changed=20Vr-scen=20to=20vr-milj=C3=B6=20in=20the=20text=20the?= =?UTF-8?q?=20user=20sees?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/views/public/StartView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/views/public/StartView.vue b/app/src/views/public/StartView.vue index a543118b..6787c25f 100644 --- a/app/src/views/public/StartView.vue +++ b/app/src/views/public/StartView.vue @@ -16,7 +16,7 @@ @@ -39,7 +39,7 @@ const authStore = useAuthStore(); const vrSpaceStore = useVrSpaceStore(); const canCreateVrSpace = computed(() => { - if (!authStore.role) { return false; } + if (!authStore.role || !hasAtLeastSecurityRole(authStore.role, 'admin')) { return false; } return hasAtLeastSecurityRole(authStore.role, 'user'); }); async function createVrSpace() { From d38e177f050475515c7eb5c89b41e54e4a65e41d Mon Sep 17 00:00:00 2001 From: Darkdusk Date: Tue, 7 Apr 2026 13:48:43 +0200 Subject: [PATCH 02/10] Added a filter to user list and made the list paginated --- app/src/views/admin/AdminUserManagerView.vue | 70 ++++++++++++++++++-- 1 file changed, 65 insertions(+), 5 deletions(-) diff --git a/app/src/views/admin/AdminUserManagerView.vue b/app/src/views/admin/AdminUserManagerView.vue index 10fd4dbc..78f5ff3e 100644 --- a/app/src/views/admin/AdminUserManagerView.vue +++ b/app/src/views/admin/AdminUserManagerView.vue @@ -42,6 +42,17 @@

Befintliga användare

+
+ + + +
-
+