From 05fec39241754ee7c426a37034d8585d5a7c46dc Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 3 Feb 2026 17:17:08 +0700 Subject: [PATCH] fix: role get position --- src/views/MainLayout.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index aeb7f4bb..d9b71c84 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -335,6 +335,10 @@ const landingPageUrl = ref(configParam.landingPageUrl); /** ฟังก์ชันเรียกข้อมูลผู้ใช่งาน*/ async function fetchKeycloakPosition() { + const checkRole = + role.value.includes("SUPER_ADMIN") || role.value.includes("ADMIN"); + if (!checkRole) return; + await http .get(config.API.keycloakPosition()) .then(async (res) => {