mirror of https://github.com/halo-dev/halo
refactor: refine permissions of extension settings page (#6237)
#### What type of PR is this? /area ui /kind improvement /milestone 2.17.x #### What this PR does / why we need it: 优化插件扩展管理页面的 UI 权限,限制只有超级管理员才能访问。 #### Does this PR introduce a user-facing change? ```release-note None ```pull/6241/head
parent
3875251d97
commit
8a61a39be3
|
@ -162,15 +162,18 @@ onMounted(() => {
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<VSpace>
|
<VSpace>
|
||||||
<VButton
|
<HasPermission :permissions="['*']">
|
||||||
size="sm"
|
<VButton
|
||||||
@click="$router.push({ name: 'PluginExtensionPointSettings' })"
|
size="sm"
|
||||||
>
|
@click="$router.push({ name: 'PluginExtensionPointSettings' })"
|
||||||
<template #icon>
|
>
|
||||||
<IconSettings class="h-full w-full" />
|
<template #icon>
|
||||||
</template>
|
<IconSettings class="h-full w-full" />
|
||||||
{{ $t("core.plugin.actions.extension-point-settings") }}
|
</template>
|
||||||
</VButton>
|
{{ $t("core.plugin.actions.extension-point-settings") }}
|
||||||
|
</VButton>
|
||||||
|
</HasPermission>
|
||||||
|
|
||||||
<VButton
|
<VButton
|
||||||
v-permission="['system:plugins:manage']"
|
v-permission="['system:plugins:manage']"
|
||||||
type="secondary"
|
type="secondary"
|
||||||
|
|
|
@ -38,6 +38,7 @@ export default definePlugin({
|
||||||
meta: {
|
meta: {
|
||||||
title: "core.plugin.extension-settings.title",
|
title: "core.plugin.extension-settings.title",
|
||||||
hideFooter: true,
|
hideFooter: true,
|
||||||
|
permissions: ["*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue