We've moved discussions to Discord

Plan Checking Question

Bryan Stewart
I have created Programs.
I would like to connect Plans to the programs.
Plan #1 -> Refers to Program #1 at $10
Plan #2 -> Refers to Program #1 at $5

When someone logs in who have a plan that is active and allows access to Program #1, I want to show it to them.

I have looked at subscribed?(:name => ''), however my enrolled user is enrolled in 'default'

I have also checked out the subscription controller and views, and it does not seem that I can do this
current_account.subscriptions.active

I could do this on my old version without an issue
          <% if user_signed_in? && current_team.subscribed? && current_team.subscription.plan.name == 'AOSS Add-On' && !verified_student %> 



Notifications
You’re not receiving notifications from this thread.