fix: role get position
This commit is contained in:
parent
1017ef74c0
commit
05fec39241
1 changed files with 4 additions and 0 deletions
|
|
@ -335,6 +335,10 @@ const landingPageUrl = ref<string>(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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue