* [task#130345,doing,0.5h] allow move lib in product/project space.

This commit is contained in:
zhouxin
2024-10-16 08:38:25 +08:00
committed by sunhao
parent 92cdf9dc08
commit d60c0294e8
+1 -3
View File
@@ -125,10 +125,8 @@ function canMoveDoc(doc)
const docApp = getDocApp();
const spaceType = docApp.signals.spaceType.value;
const hasDocMovePriv = docApp.props.privs.moveDoc;
const currentUser = docApp.props.currentUser;
if(typeof doc === 'number') doc = docApp.getDoc(doc);
return hasDocMovePriv && (spaceType === 'custom' || spaceType === 'mine') && doc.addedBy === currentUser;
return hasDocMovePriv && (spaceType !== 'api');
}
function deleteDocFile(file, doc)