New Backend changes
This commit is contained in:
9
composables/usePermission.ts
Normal file
9
composables/usePermission.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function usePermission() {
|
||||
const auth = useAuthStore()
|
||||
|
||||
const has = (key: string) => {
|
||||
return auth.hasPermission(key)
|
||||
}
|
||||
|
||||
return { has }
|
||||
}
|
||||
Reference in New Issue
Block a user