fix: avatar decorations management being open to everyone
This commit is contained in:
parent
77c49eacc1
commit
9f35ca2bd0
|
@ -133,7 +133,7 @@ const menuDef = $computed(() => [{
|
|||
}, {
|
||||
icon: 'ph-sparkle ph-bold ph-lg',
|
||||
text: i18n.ts.avatarDecorations,
|
||||
to: '/avatar-decorations',
|
||||
to: '/admin/avatar-decorations',
|
||||
active: currentPage?.route.name === 'avatarDecorations',
|
||||
}, {
|
||||
icon: 'ph-globe-hemisphere-west ph-bold ph-lg',
|
||||
|
|
|
@ -313,10 +313,6 @@ export const routes = [{
|
|||
}, {
|
||||
path: '/custom-emojis-manager',
|
||||
component: page(() => import('./pages/custom-emojis-manager.vue')),
|
||||
}, {
|
||||
path: '/avatar-decorations',
|
||||
name: 'avatarDecorations',
|
||||
component: page(() => import('./pages/avatar-decorations.vue')),
|
||||
}, {
|
||||
path: '/registry/keys/system/:path(*)?',
|
||||
component: page(() => import('./pages/registry.keys.vue')),
|
||||
|
|
|
@ -33,7 +33,7 @@ function toolsMenuItems(): MenuItem[] {
|
|||
icon: 'ph-smiley ph-bold pg-lg',
|
||||
} : undefined, ($i && ($i.isAdmin || $i.policies.canManageAvatarDecorations)) ? {
|
||||
type: 'link',
|
||||
to: '/avatar-decorations',
|
||||
to: '/admin/avatar-decorations',
|
||||
text: i18n.ts.manageAvatarDecorations,
|
||||
icon: 'ph-sparkle ph-bold pg-lg',
|
||||
} : undefined];
|
||||
|
|
Loading…
Reference in New Issue