unlock on promo codes

This commit is contained in:
Andrew Brown 2019-11-27 14:50:27 -06:00
parent 249b7e319f
commit c2bd3d44d0

View File

@ -4,7 +4,8 @@ class ExtendedContentAuthorizer < ContentAuthorizer
[
PermissionService.billing_plan_allows_extended_content?(user: user),
PermissionService.user_can_collaborate_in_universe_that_allows_extended_content?(user: user)
PermissionService.user_can_collaborate_in_universe_that_allows_extended_content?(user: user),
user.active_promo_codes.any?
].any?
end
end