# Only allow access when user has a subscription plan on Memberpress

**URL:** <https://meta.discourse.org/t/only-allow-access-when-user-has-a-subscription-plan-on-memberpress/188716>\
**Category:** WordPress\
**Created:** [April 30, 2021, 3:39pm UTC](https://meta.discourse.org/t/only-allow-access-when-user-has-a-subscription-plan-on-memberpress/188716 "2021-04-30T15:39:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Per\_Jacobsson1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/per_jacobsson1/32/202417_2.png) [@Per\_Jacobsson1](https://meta.discourse.org/u/Per_Jacobsson1)\
**Post date:** [April 30, 2021, 4:28pm UTC](https://meta.discourse.org/t/only-allow-access-when-user-has-a-subscription-plan-on-memberpress/188716/3 "2021-04-30T16:28:26Z")

</div>

Thanks Simon, thats awesome! 🙂

That allows me to check access before routing the user to Discourse.  
Do you happen to know if there is a good way to check if a user has an active subscription?  
This would be the condition on which I would choose to route them to Discourse or not.

Thanks!!

---

_[View the full topic](https://meta.discourse.org/t/only-allow-access-when-user-has-a-subscription-plan-on-memberpress/188716)._
