mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
740dce07a9
GitOrigin-RevId: 746cb15097cdc7c4f4cbd9f029d5e456c9bfe3ad
9 lines
495 B
CoffeeScript
9 lines
495 B
CoffeeScript
UserMembershipHandler = require "../UserMembership/UserMembershipHandler"
|
|
UserMembershipEntityConfigs = require "../UserMembership/UserMembershipEntityConfigs"
|
|
logger = require 'logger-sharelatex'
|
|
_ = require 'underscore'
|
|
|
|
module.exports = PublishersGetter =
|
|
getManagedPublishers: (user_id, callback = (error, managedPublishers) ->) ->
|
|
UserMembershipHandler.getEntitiesByUser UserMembershipEntityConfigs.publisher, user_id, (error, managedPublishers) ->
|
|
callback(error, managedPublishers)
|