Skip to content

Commit

Permalink
rm unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
miya committed Aug 2, 2024
1 parent 677fd7a commit 3bff2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/app/src/server/models/obsolete-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const getPageSchema = (crowi) => {
pageSchema.methods.isUpdatable = async function(previousRevision, origin) {
const populatedPageDataWithRevisionOrigin = await this.populate('revision', 'origin');
const latestRevisionOrigin = populatedPageDataWithRevisionOrigin.revision.origin;
const ignoreLatestRevision = (origin === Origin.Editor) && (latestRevisionOrigin === Origin.Editor || latestRevisionOrigin === Origin.View);
const ignoreLatestRevision = origin === Origin.Editor && (latestRevisionOrigin === Origin.Editor || latestRevisionOrigin === Origin.View);
if (ignoreLatestRevision) {
return true;
}
Expand Down

0 comments on commit 3bff2bd

Please sign in to comment.