mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add deprecation comment regarding legacy access-levels
This commit is contained in:
parent
6e09165452
commit
70b1e42e36
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ module.exports = ProjectDetailsHandler =
|
||||||
|
|
||||||
setPublicAccessLevel : (project_id, newAccessLevel, callback = ->)->
|
setPublicAccessLevel : (project_id, newAccessLevel, callback = ->)->
|
||||||
logger.log project_id: project_id, level: newAccessLevel, "set public access level"
|
logger.log project_id: project_id, level: newAccessLevel, "set public access level"
|
||||||
# TODO: remove the read-only and read-and-write items from here
|
# DEPRECATED: `READ_ONLY` and `READ_AND_WRITE` are still valid in, but should no longer
|
||||||
|
# be passed here. Remove after token-based access has been live for a while
|
||||||
if project_id? && newAccessLevel? and _.include [
|
if project_id? && newAccessLevel? and _.include [
|
||||||
PublicAccessLevels.READ_ONLY,
|
PublicAccessLevels.READ_ONLY,
|
||||||
PublicAccessLevels.READ_AND_WRITE,
|
PublicAccessLevels.READ_AND_WRITE,
|
||||||
|
|
Loading…
Reference in a new issue