feat: 接入用户与文档权限管理
This commit is contained in:
+2
-1
@@ -10,6 +10,7 @@ const props = defineProps<{
|
||||
rows: RolePermissionRow[]
|
||||
columns: PermissionColumn[]
|
||||
saving?: boolean
|
||||
canEdit?: boolean
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
@@ -34,7 +35,7 @@ function stateLabel(state: PermissionCellState) {
|
||||
}
|
||||
|
||||
function isDisabled(row: RolePermissionRow, permission: PermissionKey) {
|
||||
return props.saving || getState(row, permission) === 'inherited-deny'
|
||||
return props.saving || props.canEdit === false || getState(row, permission) === 'inherited-deny'
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user