fix: avatar decorations management being open to everyone

This commit is contained in:
Mar0xy 2023-11-01 22:11:01 +01:00
parent 77c49eacc1
commit 9f35ca2bd0
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
3 changed files with 2 additions and 6 deletions

View file

@ -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',

View file

@ -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')),

View file

@ -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];