Add deprecation comment regarding legacy access-levels

This commit is contained in:
Shane Kilkelly 2017-10-12 11:00:39 +01:00
parent 6e09165452
commit 70b1e42e36

View file

@ -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,