2019-04-23 10:19:07 -04:00
|
|
|
UserMembershipsHandler = require "../UserMembership/UserMembershipsHandler"
|
2018-12-18 08:22:44 -05:00
|
|
|
UserMembershipEntityConfigs = require "../UserMembership/UserMembershipEntityConfigs"
|
|
|
|
logger = require 'logger-sharelatex'
|
|
|
|
_ = require 'underscore'
|
|
|
|
|
|
|
|
module.exports = PublishersGetter =
|
|
|
|
getManagedPublishers: (user_id, callback = (error, managedPublishers) ->) ->
|
2019-04-23 10:19:07 -04:00
|
|
|
UserMembershipsHandler.getEntitiesByUser UserMembershipEntityConfigs.publisher, user_id, (error, managedPublishers) ->
|
2018-12-18 08:22:44 -05:00
|
|
|
callback(error, managedPublishers)
|