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() {