This commit is contained in:
Casey Wittrock 2025-10-20 09:26:47 -05:00
parent d76ee19be7
commit 26609eb46c
11 changed files with 251 additions and 70 deletions

View file

@ -0,0 +1,16 @@
import { defineStore } from "pinia";
export const useUserStore = defineStore("user", {
state: () => ({
username: "",
roles: [],
}),
actions: {
check_permission(role) {
if (this.roles.includes(role)) {
return true;
}
return false;
},
},
});