🐛 fix (error): conditionally render error page based on authentication

This commit is contained in:
Abizrh
2025-08-13 10:17:34 +07:00
parent db9a87d825
commit ccb249cbe8
2 changed files with 5 additions and 4 deletions

No files matched your search

+1 -3
View File
@@ -28,8 +28,6 @@ const canRead = hasReadAccess(roleAccess)
<div v-if="canRead">
<FlowPatientList />
</div>
<div v-else>
<p>You don't have permission to view patient records.</p>
</div>
<PubBaseError v-else :status-code="403" />
</div>
</template>