Body: <p>A Wordpress + CiviCRM site I'm working on has their &quot;Renew your membership&quot; page wide open to all users. We need this page to only show if the user is logged in for obvious reasons. What's the proper way to accomplish this page specific restriction?</p>
  <p>My first thought is to restrict &quot;CiviContriubte: make online contributions&quot; in WordPress Access Control (CiviCRM &gt;&gt; Administer CiviCRM &gt;&gt; Access Control &gt;&gt; WordPress Access Control) but we may want some contribution pages (donate) to be open to anonymous users.</p>
  <p>Any guidance is greatly appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-14T19:18:22.583Z
Comments.Text: This is odd as I feel i have commented on an identical question but i can't find it. maybe it was in SE. A 'renew' page is just as public as a 'join' page for the reason that it is the same page, and it becomes a 'renew' page when the person arriving on the page, either due to being logged in, or using a checksum, already has a membership. Can you explain why you say 'we need this page to only to show if the user is logged in for "obvious reason"'. as those reasons may not follow for all civi projects
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-14T19:26:54.453Z
Comments.Text: ironically my colleague has pointed out we have done pretty much the same for a client previously and estimates it would take ~ 1 hour to generalise the solution and be able to release it as an extension if you are at all interested
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-15T20:50:35.463Z
Comments.Text: @petednz-fuzion The problem is that users who don't have a membership try to "renew" their membership that doesn't exist. At least in my example, the page is dedicated to renewal, so it stands to reason that it should only be available to members.
Comments.UserDisplayName: CiviDan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-16T00:53:40.350Z
Comments.Text: can you clarify how you set up a contribution page to be dedicated for renewing only? but i am not really helping your core issue, which is you want to make this page only available to a logged in user, and i do not know how to do that. sorry
Comments.UserDisplayName: petednz - fuzion
Tags: <civimember><recurring-contributions><auto-renew><renewals><gift-memberships>
Title: Wordpress + CiviCRM: Restrict “Membership Renewal” contribution page to logged in users only
ThreadText: # Wordpress + CiviCRM: Restrict “Membership Renewal” contribution page to logged in users only
  
  (Asked by: username_0 on 2020-12-13)
  
  A Wordpress + CiviCRM site I'm working on has their "Renew your membership" page wide open to all users. We need this page to only show if the user is logged in for obvious reasons. What's the proper way to accomplish this page specific restriction?
  
  My first thought is to restrict "CiviContriubte: make online contributions" in WordPress Access Control (CiviCRM >> Administer CiviCRM >> Access Control >> WordPress Access Control) but we may want some contribution pages (donate) to be open to anonymous users.
  
  Any guidance is greatly appreciated.
  
  **Tags:** civimember, recurring-contributions, auto-renew, renewals, gift-memberships
  
  > **Comments:**
  > **username_1**: This is odd as I feel i have commented on an identical question but i can't find it. maybe it was in SE. A 'renew' page is just as public as a 'join' page for the reason that it is the same page, and it becomes a 'renew' page when the person arriving on the page, either due to being logged in, or using a checksum, already has a membership. Can you explain why you say 'we need this page to only to show if the user is logged in for "obvious reason"'. as those reasons may not follow for all civi projects  
  > **username_1**: ironically my colleague has pointed out we have done pretty much the same for a client previously and estimates it would take ~ 1 hour to generalise the solution and be able to release it as an extension if you are at all interested  
  > **username_0**: @petednz-fuzion The problem is that users who don't have a membership try to "renew" their membership that doesn't exist. At least in my example, the page is dedicated to renewal, so it stands to reason that it should only be available to members.  
  > **username_1**: can you clarify how you set up a contribution page to be dedicated for renewing only? but i am not really helping your core issue, which is you want to make this page only available to a logged in user, and i do not know how to do that. sorry  
  
  ---
  
  ## 0 answers
  
  