mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix logic, was wrong way around
This commit is contained in:
parent
41cc9e68b5
commit
64c9a3ae18
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@ module.exports = SubscriptionController =
|
||||||
plansPage: (req, res, next) ->
|
plansPage: (req, res, next) ->
|
||||||
plans = SubscriptionViewModelBuilder.buildViewModel()
|
plans = SubscriptionViewModelBuilder.buildViewModel()
|
||||||
if AuthenticationController.isUserLoggedIn(req)
|
if AuthenticationController.isUserLoggedIn(req)
|
||||||
baseUrl = "/register?redir="
|
|
||||||
else
|
|
||||||
baseUrl = ""
|
baseUrl = ""
|
||||||
|
else
|
||||||
|
baseUrl = "/register?redir="
|
||||||
viewName = "subscriptions/plans"
|
viewName = "subscriptions/plans"
|
||||||
if req.query.v?
|
if req.query.v?
|
||||||
viewName = "#{viewName}_#{req.query.v}"
|
viewName = "#{viewName}_#{req.query.v}"
|
||||||
|
|
Loading…
Reference in a new issue