ability section update
This commit is contained in:
parent
68efdc131b
commit
eff79a4697
3 changed files with 18 additions and 4 deletions
|
@ -81,7 +81,7 @@ export const useNavigationStore = defineStore("navigation", {
|
|||
updateTopLevel() {
|
||||
const abilityStore = useAbilityStore();
|
||||
this.topLevel = [
|
||||
...(abilityStore.can("read", "club")
|
||||
...(abilityStore.canSection("read", "club")
|
||||
? [
|
||||
{
|
||||
key: "club",
|
||||
|
@ -90,7 +90,7 @@ export const useNavigationStore = defineStore("navigation", {
|
|||
} as topLevelNavigationModel,
|
||||
]
|
||||
: []),
|
||||
...(abilityStore.can("read", "settings")
|
||||
...(abilityStore.canSection("read", "settings")
|
||||
? [
|
||||
{
|
||||
key: "settings",
|
||||
|
@ -99,7 +99,7 @@ export const useNavigationStore = defineStore("navigation", {
|
|||
} as topLevelNavigationModel,
|
||||
]
|
||||
: []),
|
||||
...(abilityStore.can("read", "user")
|
||||
...(abilityStore.canSection("read", "user")
|
||||
? [
|
||||
{
|
||||
key: "user",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue