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:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user