isOfficer
This commit is contained in:
parent
6da1827526
commit
e043a3c9cc
4 changed files with 74 additions and 37 deletions
|
|
@ -83,9 +83,8 @@ onMounted(async () => {
|
|||
await fetchPlacementData();
|
||||
}
|
||||
|
||||
const user = await tokenParsed();
|
||||
if (user) {
|
||||
roleAdmin.value = await user.role.includes("placement1");
|
||||
if (DataStore.isOfficer) {
|
||||
roleAdmin.value = DataStore.isOfficer;
|
||||
}
|
||||
|
||||
await getStat();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue