From 5910b6369242ecc393383af7dc6d613c279c9590 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Thu, 12 Nov 2026 17:48:50 +0800 Subject: [PATCH] fix: role no permission disbaled check --- .../identity/roles/components/RolePermissionConfiguration.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/views/system/identity/roles/components/RolePermissionConfiguration.vue b/ui/src/views/system/identity/roles/components/RolePermissionConfiguration.vue index ce897fa9b71..c8abc8fab12 100644 --- a/ui/src/views/system/identity/roles/components/RolePermissionConfiguration.vue +++ b/ui/src/views/system/identity/roles/components/RolePermissionConfiguration.vue @@ -21,7 +21,8 @@ const props = defineProps<{ currentRole: RoleItem }>() const loading = ref(false) const permissionData = ref([]) const showCategory = ref(true) -const disabled = computed(() => props.currentRole.internal) +// 内置角色或当前用户无角色编辑权限时,权限矩阵只读。 +const disabled = computed(() => props.currentRole.internal || !perm.system.role.edit()) const permissionTableKey = computed(() => `${props.currentRole.id}:${disabled.value ? 'readonly' : 'editable'}`) function loadPermissions() {