1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

fix: metadata cv and drag bug (#6532)

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-08-12 14:24:48 +08:00
committed by GitHub
parent 172ab0d2ad
commit 177e97bb73
9 changed files with 61 additions and 56 deletions

View File

@@ -92,20 +92,20 @@ class Context {
return this.permission;
};
canModifyCell = (column) => {
canModifyRow = (row) => {
if (this.permission === 'r') return false;
const { editable } = column;
if (!editable) return false;
return true;
};
canModifyRow = (row) => {
canModifyRows = () => {
if (this.permission === 'r') return false;
return true;
};
canModifyColumn = (column) => {
if (this.permission === 'r') return false;
const { editable } = column;
if (!editable) return false;
if (PRIVATE_COLUMN_KEYS.includes(column.key) && !EDITABLE_PRIVATE_COLUMN_KEYS.includes(column.key)) return false;
return true;
};