mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 10:20:49 -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"
|
logger.log user_id: user_id, "exporting group csv"
|
||||||
SubscriptionLocator.getManagedSubscription user_id, (err, subscription)->
|
SubscriptionLocator.getManagedSubscription user_id, (err, subscription)->
|
||||||
return next(error) if error?
|
return next(error) if error?
|
||||||
|
if !subscription.groupPlan
|
||||||
|
return res.redirect("/")
|
||||||
SubscriptionGroupHandler.getPopulatedListOfMembers subscription._id, (err, users)->
|
SubscriptionGroupHandler.getPopulatedListOfMembers subscription._id, (err, users)->
|
||||||
groupCsv = ""
|
groupCsv = ""
|
||||||
for user in users
|
for user in users
|
||||||
|
|
Loading…
Reference in a new issue