mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 05:15:20 -05: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:
parent
3586fe8406
commit
40c1f67561
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue