overleaf/services/web/app/coffee/Features/Subscription/PlansLocator.coffee

10 lines
189 B
CoffeeScript
Raw Normal View History

2014-02-12 10:23:40 +00:00
Settings = require("settings-sharelatex")
module.exports =
findLocalPlanInSettings: (planCode) ->
for plan in Settings.plans
return plan if plan.planCode == planCode
return null