Merge pull request #31353 from overleaf/rh-project-model-readonly

Add readOnly attribute to ProjectSchema

GitOrigin-RevId: 9f7529549f940f69d70e357145dab7b297f3ce68
This commit is contained in:
roo hutton
2026-02-06 12:15:58 +00:00
committed by Copybot
parent 5423c5c792
commit f9801ea98e
2 changed files with 2 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ export type MongoProject = {
lastUpdated: Date
lastUpdatedBy: string
publicAccesLevel: string
readOnly: boolean
archived: ObjectId[]
trashed: ObjectId[]
owner_ref: string

View File

@@ -24,6 +24,7 @@ export const ProjectSchema = new Schema(
lastUpdatedBy: { type: ObjectId, ref: 'User' },
lastOpened: { type: Date },
active: { type: Boolean, default: true },
readOnly: { type: Boolean, default: false },
owner_ref: { type: ObjectId, ref: 'User' },
collaberator_refs: [{ type: ObjectId, ref: 'User' }],
reviewer_refs: [{ type: ObjectId, ref: 'User' }],