mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
10 lines
495 B
CoffeeScript
10 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)
|