overleaf/services/web/app/coffee/Features/Subscription/PlansLocator.coffee
2014-02-12 10:23:40 +00:00

9 lines
189 B
CoffeeScript

Settings = require("settings-sharelatex")
module.exports =
findLocalPlanInSettings: (planCode) ->
for plan in Settings.plans
return plan if plan.planCode == planCode
return null