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
Ryan Wang 2024-07-01 16:37:16 +08:00 committed by GitHub
parent 3875251d97
commit 8a61a39be3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 9 deletions

View File

@ -162,15 +162,18 @@ onMounted(() => {
</template>
<template #actions>
<VSpace>
<VButton
size="sm"
@click="$router.push({ name: 'PluginExtensionPointSettings' })"
>
<template #icon>
<IconSettings class="h-full w-full" />
</template>
{{ $t("core.plugin.actions.extension-point-settings") }}
</VButton>
<HasPermission :permissions="['*']">
<VButton
size="sm"
@click="$router.push({ name: 'PluginExtensionPointSettings' })"
>
<template #icon>
<IconSettings class="h-full w-full" />
</template>
{{ $t("core.plugin.actions.extension-point-settings") }}
</VButton>
</HasPermission>
<VButton
v-permission="['system:plugins:manage']"
type="secondary"

View File

@ -38,6 +38,7 @@ export default definePlugin({
meta: {
title: "core.plugin.extension-settings.title",
hideFooter: true,
permissions: ["*"],
},
},
{