mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 17:13:09 +02:00
fix: avatar decorations management being open to everyone
This commit is contained in:
parent
77c49eacc1
commit
9f35ca2bd0
3 changed files with 2 additions and 6 deletions
|
@ -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 a new issue