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,6 +162,7 @@ onMounted(() => {
</template> </template>
<template #actions> <template #actions>
<VSpace> <VSpace>
<HasPermission :permissions="['*']">
<VButton <VButton
size="sm" size="sm"
@click="$router.push({ name: 'PluginExtensionPointSettings' })" @click="$router.push({ name: 'PluginExtensionPointSettings' })"
@ -171,6 +172,8 @@ onMounted(() => {
</template> </template>
{{ $t("core.plugin.actions.extension-point-settings") }} {{ $t("core.plugin.actions.extension-point-settings") }}
</VButton> </VButton>
</HasPermission>
<VButton <VButton
v-permission="['system:plugins:manage']" v-permission="['system:plugins:manage']"
type="secondary" type="secondary"

View File

@ -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: ["*"],
}, },
}, },
{ {