Answers.Body: <p>This belongs as a comment, but I'm bending the rules because I wanted to include screenshots.</p>
  <p>I was unable to replicate this.  See my attached screenshots from a demo site.  The first screenshot is while logged in as an admin, the second is as an anonymous user on the same page.  Since you're able to replicate this on the demo server, we must be setting up the page differently.  Could you please edit your question to detail the exact steps you took to set this up?  Or perhaps link to a video?</p>
  <h3>As admin</h3>
  <p><a href="https://i.sstatic.net/5ki4m.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5ki4m.png" alt="enter image description here" /></a></p>
  <h3>As anonymous</h3>
  <p><a href="https://i.sstatic.net/pDTvb.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pDTvb.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-13T21:21:24.013Z
Answers.Text: Sorry, I realise now that I wasn't clear in my initial description of the problem. I have three discrete choices, so have set these up as multiple options of a single 'radio' field, not as separate price fields. It is when one of the radio fields is set as 'Admin' that it remains publically visible.
Answers.UserDisplayName: Bryan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-14T00:12:28.833Z
Answers.Text: My select box above is configured as you described.  I just added a radio button price field, in case it was specific to radio buttons.  I've updated my screenshots above; you can see I don't experience what you're describing.  It would help to have a video or screenshots of your setup.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-14T04:55:37.473Z
Answers.Text: I've added a couple of screenshots form the demo site. Thanks.
Answers.UserDisplayName: Bryan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-14T14:17:18.317Z
Answers.Text: As Anil points out above - your screenshot is while logged in as an administrative user.  Can you post a screenshot showing the same result as an anonymous user?
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-15T01:29:04.463Z
Answers.Text: Embarassingly, as you point out, I was still logged into the demo database. When I used the demo link in a different, logged-out, browser there was no issue. However, my live site still has the problem I originally described, tested in a fresh logged-out browser session. It might also be worth noting that this affects multiple events on the same site.
Answers.UserDisplayName: Bryan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-15T22:47:12.953Z
Answers.Text: @Bryan If the problem isn't replicable on the demo site, it's most likely that there's something specific to your installation.  I don't believe there are any changes to this code between 5.26 and 5.28beta.  You might want to see if you have any custom templates or extensions that might be affecting this.  You might also try using an extension like [civicrm_groupprice](https://github.com/tadpolecc/civicrm_groupprice) as an alternative.  I personally won't use any extension that overrides core files (which this one does) but if you have an urgent issue, you can use it now and fix later.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-17T04:05:37.707Z
Answers.Text: Thanks, that woeked. Understand your position on core mods, but the groupprice ext helped me out of a hole.
Answers.UserDisplayName: Bryan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-13T14:38:08.920Z
Answers.LastActivityDate: 2020-07-14T00:11:30.497Z
Answers.LastEditDate: 2020-07-14T00:11:30.497Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>Civi 5.26.1/Drupal 7.72</p>
  <p>When I added an option 'Complimentary' to a pre-existing price set with an amount of '0.00' and set visibility to 'Admin', the option was still visible to anonymous users. Testing, I find that setting the 'Admin' option makes no difference to the existing options either.</p>
  <p>The 'edit event participants' permission is switched off for anonymous users.</p>
  <p>Could this be because the price set is already in use? Any similar experiences or hints for a work around?
  <a href="https://i.sstatic.net/cndhr.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/cndhr.png" alt="Option details" /></a>
  <a href="https://i.sstatic.net/1MynS.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/1MynS.png" alt="Registration Screen" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-13T01:43:49.457Z
Comments.Text: Are you able to replicate this on the demo server?  https://dmaster.demo.civicrm.org
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-13T06:34:04.397Z
Comments.Text: Yes, it behaves exactly the same.
Comments.UserDisplayName: Bryan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-14T13:14:36.167Z
Comments.Text: Your second screenshot shows that you're logged in as admin, the admin only fee option will still be visible to admins on the event registration page.
  The admin only option won’t be available if you visit this page when not logged in.
Comments.UserDisplayName: Anil
Tags: <civievent><price-sets>
Title: Price Set Option still publically visible when visibility set to 'Admin'
ThreadText: # Price Set Option still publically visible when visibility set to 'Admin'
  
  (Asked by: username_0 on 2020-07-12)
  
  Civi 5.26.1/Drupal 7.72
  
  When I added an option 'Complimentary' to a pre-existing price set with an amount of '0.00' and set visibility to 'Admin', the option was still visible to anonymous users. Testing, I find that setting the 'Admin' option makes no difference to the existing options either.
  
  The 'edit event participants' permission is switched off for anonymous users.
  
  Could this be because the price set is already in use? Any similar experiences or hints for a work around?
  [![Option details](https://i.sstatic.net/cndhr.png)](https://i.sstatic.net/cndhr.png)
  [![Registration Screen](https://i.sstatic.net/1MynS.png)](https://i.sstatic.net/1MynS.png)
  
  **Tags:** civievent, price-sets
  
  > **Comments:**
  > **username_1**: Are you able to replicate this on the demo server?  https://dmaster.demo.civicrm.org  
  > **username_0**: Yes, it behaves exactly the same.  
  > **username_2**: Your second screenshot shows that you're logged in as admin, the admin only fee option will still be visible to admins on the event registration page. The admin only option won’t be available if you visit this page when not logged in.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-07-13. Score: 1
  
  This belongs as a comment, but I'm bending the rules because I wanted to include screenshots.
  
  I was unable to replicate this. See my attached screenshots from a demo site. The first screenshot is while logged in as an admin, the second is as an anonymous user on the same page. Since you're able to replicate this on the demo server, we must be setting up the page differently. Could you please edit your question to detail the exact steps you took to set this up? Or perhaps link to a video?
  
  ### As admin
  
  [![enter image description here](https://i.sstatic.net/5ki4m.png)](https://i.sstatic.net/5ki4m.png)
  
  ### As anonymous
  
  [![enter image description here](https://i.sstatic.net/pDTvb.png)](https://i.sstatic.net/pDTvb.png)
  
  > **Comments:**
  > **username_0**: Sorry, I realise now that I wasn't clear in my initial description of the problem. I have three discrete choices, so have set these up as multiple options of a single 'radio' field, not as separate price fields. It is when one of the radio fields is set as 'Admin' that it remains publically visible.  
  > **username_1**: My select box above is configured as you described.  I just added a radio button price field, in case it was specific to radio buttons.  I've updated my screenshots above; you can see I don't experience what you're describing.  It would help to have a video or screenshots of your setup.  
  > **username_0**: I've added a couple of screenshots form the demo site. Thanks.  
  > **username_1**: As username_2 points out above - your screenshot is while logged in as an administrative user.  Can you post a screenshot showing the same result as an anonymous user?  
  > **username_0**: Embarassingly, as you point out, I was still logged into the demo database. When I used the demo link in a different, logged-out, browser there was no issue. However, my live site still has the problem I originally described, tested in a fresh logged-out browser session. It might also be worth noting that this affects multiple events on the same site.  
  > **username_1**: @username_0 If the problem isn't replicable on the demo site, it's most likely that there's something specific to your installation.  I don't believe there are any changes to this code between 5.26 and 5.28beta.  You might want to see if you have any custom templates or extensions that might be affecting this.  You might also try using an extension like [civicrm_groupprice](https://github.com/tadpolecc/civicrm_groupprice) as an alternative.  I personally won't use any extension that overrides core files (which this one does) but if you have an urgent issue, you can use it now and fix later.  
  > **username_0**: Thanks, that woeked. Understand your position on core mods, but the groupprice ext helped me out of a hole.  
  
  ---
  
  