mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 20:11:32 +02:00
Merge pull request #31353 from overleaf/rh-project-model-readonly
Add readOnly attribute to ProjectSchema GitOrigin-RevId: 9f7529549f940f69d70e357145dab7b297f3ce68
This commit is contained in:
@@ -23,6 +23,7 @@ export type MongoProject = {
|
||||
lastUpdated: Date
|
||||
lastUpdatedBy: string
|
||||
publicAccesLevel: string
|
||||
readOnly: boolean
|
||||
archived: ObjectId[]
|
||||
trashed: ObjectId[]
|
||||
owner_ref: string
|
||||
|
||||
@@ -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' }],
|
||||
|
||||
Reference in New Issue
Block a user