From 70b1e42e3605b8bf9dcb6b9ab5302eff1699f670 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 12 Oct 2017 11:00:39 +0100 Subject: [PATCH] Add deprecation comment regarding legacy access-levels --- .../app/coffee/Features/Project/ProjectDetailsHandler.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Project/ProjectDetailsHandler.coffee b/services/web/app/coffee/Features/Project/ProjectDetailsHandler.coffee index eb4e92d669..30560b8910 100644 --- a/services/web/app/coffee/Features/Project/ProjectDetailsHandler.coffee +++ b/services/web/app/coffee/Features/Project/ProjectDetailsHandler.coffee @@ -65,7 +65,8 @@ module.exports = ProjectDetailsHandler = setPublicAccessLevel : (project_id, newAccessLevel, callback = ->)-> 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 [ PublicAccessLevels.READ_ONLY, PublicAccessLevels.READ_AND_WRITE,