Don't use brand prefix setting to mark v1

This commit is contained in:
Alasdair Smith 2017-11-01 14:12:44 +00:00
parent 8df31590a9
commit 0724482808

View file

@ -144,7 +144,6 @@ module.exports = ProjectController =
timer = new metrics.Timer("project-list")
user_id = AuthenticationController.getLoggedInUserId(req)
currentUser = AuthenticationController.getSessionUser(req)
isV1 = Settings.brandPrefix == "ol-"
async.parallel {
tags: (cb)->
TagsHandler.getAllTags user_id, cb
@ -180,7 +179,7 @@ module.exports = ProjectController =
notifications: notifications or []
user: user
hasSubscription: results.hasSubscription[0]
isV1: isV1
isV1: results.v1Projects?
}
if Settings?.algolia?.app_id? and Settings?.algolia?.read_only_api_key?