mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 21:31:36 +02:00
[web] Disallow deprecated access levels from being set GitOrigin-RevId: cf276e849692be210a2dc7d896820579efc46952
18 lines
607 B
JavaScript
18 lines
607 B
JavaScript
/**
|
|
* Note:
|
|
* It used to be that `project.publicAccessLevel` could be set to `private`,
|
|
* `readOnly` or `readAndWrite`, the latter of which made the project publicly
|
|
* accessible.
|
|
*
|
|
* This system was replaced with "link sharing", therafter the valid values are
|
|
* `private` or `tokenBased`. While it is no longer possible to set
|
|
* `publicAccessLevel` to the legacy values, there are projects in the system
|
|
* that already have those values set.
|
|
*/
|
|
module.exports = {
|
|
READ_ONLY: 'readOnly', // LEGACY
|
|
READ_AND_WRITE: 'readAndWrite', // LEGACY
|
|
PRIVATE: 'private',
|
|
TOKEN_BASED: 'tokenBased',
|
|
}
|