mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
79eddcc736
For a member of a group LimitationsManager.userHasSubscriptionOrIsGroupMember doesn't return any subscription, so when the controller tries to access subscription.recurlySubscription_id there's an error. SubscriptionViewModelBuilder already knows how to handle the case in which the user is a member of a group but has not subscription of their own, so guarding against the crash is enough to fix the issue. |
||
---|---|---|
.. | ||
LimitationsManager.coffee | ||
PlansLocator.coffee | ||
RecurlyWrapper.coffee | ||
SubscriptionController.coffee | ||
SubscriptionDomainHandler.coffee | ||
SubscriptionFormatters.coffee | ||
SubscriptionGroupController.coffee | ||
SubscriptionGroupHandler.coffee | ||
SubscriptionHandler.coffee | ||
SubscriptionLocator.coffee | ||
SubscriptionRouter.coffee | ||
SubscriptionUpdater.coffee | ||
SubscriptionViewModelBuilder.coffee | ||
UserFeaturesUpdater.coffee |