mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't create tokens on project by default
This commit is contained in:
parent
29a584996f
commit
732ce9417b
1 changed files with 2 additions and 9 deletions
|
@ -6,7 +6,6 @@ logger = require('logger-sharelatex')
|
|||
sanitize = require('sanitizer')
|
||||
concreteObjectId = require('mongoose').Types.ObjectId
|
||||
Errors = require "../Features/Errors/Errors"
|
||||
ProjectTokenGenerator = require '../Features/Project/ProjectTokenGenerator'
|
||||
|
||||
Schema = mongoose.Schema
|
||||
ObjectId = Schema.ObjectId
|
||||
|
@ -34,14 +33,8 @@ ProjectSchema = new Schema
|
|||
imageName : { type: String }
|
||||
track_changes : { type: Object }
|
||||
tokens :
|
||||
readOnly : {
|
||||
type: String,
|
||||
default: () -> ProjectTokenGenerator.readOnlyToken()
|
||||
}
|
||||
readAndWrite : {
|
||||
type: String,
|
||||
default: () -> ProjectTokenGenerator.readAndWriteToken()
|
||||
}
|
||||
readOnly : { type: String }
|
||||
readAndWrite : { type: String }
|
||||
tokenAccessReadOnly_refs : [ type:ObjectId, ref:'User' ]
|
||||
tokenAccessReadAndWrite_refs : [ type:ObjectId, ref:'User' ]
|
||||
overleaf :
|
||||
|
|
Loading…
Reference in a new issue