Merge pull request #3064 from overleaf/ta-manage-multiple-groups

Allow Users to Manage Multiple Groups

GitOrigin-RevId: c918da0114cdd1d679223f69d81159b4c2608874
This commit is contained in:
Timothée Alby
2020-08-13 02:06:20 +00:00
committed by Copybot
parent 29f09c50c2
commit 8cd6e7ccfc
9 changed files with 41 additions and 89 deletions
@@ -42,10 +42,6 @@ const SubscriptionLocator = {
)
},
findManagedSubscription(managerId, callback) {
return Subscription.findOne({ manager_ids: managerId }, callback)
},
getManagedGroupSubscriptions(user_or_id, callback) {
if (callback == null) {
callback = function(error, managedSubscriptions) {}
@@ -121,9 +117,6 @@ SubscriptionLocator.promises = {
getUserIndividualSubscription: promisify(
SubscriptionLocator.getUserIndividualSubscription
),
findManagedSubscription: promisify(
SubscriptionLocator.findManagedSubscription
),
getManagedGroupSubscriptions: promisify(
SubscriptionLocator.getManagedGroupSubscriptions
),