mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Check that the subscription is a group before exporting it to csv
I removed this check by mistake, just taking it back.
This commit is contained in:
@@ -69,6 +69,8 @@ module.exports =
|
||||
logger.log user_id: user_id, "exporting group csv"
|
||||
SubscriptionLocator.getManagedSubscription user_id, (err, subscription)->
|
||||
return next(error) if error?
|
||||
if !subscription.groupPlan
|
||||
return res.redirect("/")
|
||||
SubscriptionGroupHandler.getPopulatedListOfMembers subscription._id, (err, users)->
|
||||
groupCsv = ""
|
||||
for user in users
|
||||
|
||||
Reference in New Issue
Block a user