From ccb249cbe8ed91b5deac00377b01a77a29132fd5 Mon Sep 17 00:00:00 2001 From: Abizrh Date: Wed, 13 Aug 2025 10:17:34 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20(error):=20conditionally?= =?UTF-8?q?=20render=20error=20page=20based=20on=20authentication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/error.vue | 5 ++++- app/pages/(features)/patient/index.vue | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/error.vue b/app/error.vue index 27c04cc0..e3e3d76b 100644 --- a/app/error.vue +++ b/app/error.vue @@ -2,10 +2,13 @@ definePageMeta({ layout: 'blank', }) + +const { isAuthenticated } = useUserStore() diff --git a/app/pages/(features)/patient/index.vue b/app/pages/(features)/patient/index.vue index 13e0c451..916b3a4b 100644 --- a/app/pages/(features)/patient/index.vue +++ b/app/pages/(features)/patient/index.vue @@ -28,8 +28,6 @@ const canRead = hasReadAccess(roleAccess)
-
-

You don't have permission to view patient records.

-
+