1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-10 18:10:54 +09:00

remove lock for file/system layouts

This commit is contained in:
Andrew Simachev 2024-12-06 15:54:11 +01:00
parent ea87765bef
commit 84e60df54c
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF

View file

@ -176,7 +176,7 @@ class MenuObject extends React.Component<I.Menu> {
const allowedSearch = !isFilePreview && !isInSetLayouts;
const allowedHistory = !object.isArchived && !isInFileOrSystemLayouts && !isParticipant && !isDate && !object.templateIsBundled;
const allowedFav = canWrite && !object.isArchived && !object.templateIsBundled;
const allowedLock = canWrite && !object.isArchived && S.Block.checkFlags(rootId, rootId, [ I.RestrictionObject.Details ]);
const allowedLock = canWrite && !object.isArchived && S.Block.checkFlags(rootId, rootId, [ I.RestrictionObject.Details ]) && !isInFileOrSystemLayouts;
const allowedLinkTo = canWrite && !object.isArchived;
const allowedAddCollection = canWrite && !object.isArchived;
const allowedPageLink = !object.isArchived;