overleaf/services/web/app/coffee/Features/User/UserHandler.coffee

13 lines
387 B
CoffeeScript
Raw Normal View History

SubscriptionDomainHandler = require("../Subscription/SubscriptionDomainHandler")
NotificationsBuilder = require("../Notifications/NotificationsBuilder")
module.exports =
setupLoginData: (user, callback = ->)->
licence = SubscriptionDomainHandler.getLicenceUserCanJoin user
if licence?
NotificationsBuilder.groupPlan(user, licence).create(callback)
else
return callback()