# Restrict Content To Staff

**URL:** <https://forum.ghost.org/t/restrict-content-to-staff/37682>\
**Category:** Themes\
**Created:** [April 9, 2023, 5:13am UTC](https://forum.ghost.org/t/restrict-content-to-staff/37682 "2023-04-09T05:13:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NikonUser](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/nikonuser/32/10542_2.png) [@NikonUser](https://forum.ghost.org/u/NikonUser)\
**Post date:** [April 9, 2023, 5:13am UTC](https://forum.ghost.org/t/restrict-content-to-staff/37682/1 "2023-04-09T05:13:38Z")

</div>

Hi there,

I am trying to restrict some content (pages) to registered staff members of my blog.

As far as I can tell, it isn’t possible to do this with the visibility settings on the page backend, so I’m looking to create a custom page template to achieve what I’m after

custom-staff-only.hbs

Is anyone able to tell me if it is possible to do an ‘if’ statement to test if the current user is a member of staff?

Something along the lines of {{if @ staff}}

Thanks for any help

Paul

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [April 9, 2023, 11:00pm UTC](https://forum.ghost.org/t/restrict-content-to-staff/37682/2 "2023-04-09T23:00:16Z")

</div>

There’s nothing in handlebars that’ll do that, I think.

_IF_ your front end and admin pages are on the same domain (not the case for Ghost Pro users), I think you could do a fetch to the Admin API with include credentials to get the post content and put it on the page. (You could also have your staff users do a separate login - see [Ghost Admin API Documentation](https://ghost.org/docs/admin-api/#authentication) for some options.) So maybe you could have some posts that are not visible anywhere on the front end normally, but you also have a special template on the front end that uses javascript to make a request including the admin cookie (or runs a whole authentication flow), and then renders the page with the content retrieved. Could be done, but not a trivial task.

Another workaround: Make a tier that you put only your staff users in. (Don’t display it in Portal - there’s a checkbox for that.) Restrict those staff user posts to just that tier.

---

<div class="post-metadata">

**Author:** ![NikonUser](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/nikonuser/32/10542_2.png) [@NikonUser](https://forum.ghost.org/u/NikonUser)\
**Post date:** [April 9, 2023, 11:14pm UTC](https://forum.ghost.org/t/restrict-content-to-staff/37682/3 "2023-04-09T23:14:04Z")

</div>

Thank you for the detailed reply!

Sadly I don’t have the knowledge to be able to even begin your first ideas (and I’m on ghost pro).

Your membership tier idea might work though - I’ll give it a go :)

Edit: Yep - worked a treat. Thank you

---

<div class="post-metadata">

**Author:** ![r002](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/r002/32/24964_2.png) [@r002](https://forum.ghost.org/u/r002)\
**Post date:** [June 19, 2023, 8:26pm UTC](https://forum.ghost.org/t/restrict-content-to-staff/37682/4 "2023-06-19T20:26:43Z")

</div>

@Cathy_Sarisky @NikonUser Thank you for this post! I was looking to try to do something similar. ie. Create a `staff-only` section of my site.

**Quick question:**  
I’m following Cathy’s tip to create a `staff-only` tier but am unable to make it cost $0. (The GUI complains and says, `"Subscription amount must be at least $1.00"`. How did you guys work around this? The only thing I can think of is to configure a `free trial period` of `999999999999999 days`. Is this what you guys did?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/8/7/87d53b143abf27661cff69819370ec99c7569700.png)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 19, 2023, 8:55pm UTC](https://forum.ghost.org/t/restrict-content-to-staff/37682/5 "2023-06-19T20:55:10Z")

</div>

There’s a complimentary subscription. You can make the price anything you want (well, apparently except for $0) and then give your staff users a forever-complimentary subscription.

---

<div class="post-metadata">

**Author:** ![r002](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/r002/32/24964_2.png) [@r002](https://forum.ghost.org/u/r002)\
**Post date:** [June 20, 2023, 11:09pm UTC](https://forum.ghost.org/t/restrict-content-to-staff/37682/6 "2023-06-20T23:09:34Z")

</div>

Magnificent! Figured it out. Thank you, @Cathy_Sarisky!! 🙏

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/8/c/8c71580f9d02ae5b8f2df393d0747963e6c5a896.png)

---

<div class="post-metadata">

**Author:** ![NikonUser](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/nikonuser/32/10542_2.png) [@NikonUser](https://forum.ghost.org/u/NikonUser)\
**Post date:** [June 21, 2023, 9:29am UTC](https://forum.ghost.org/t/restrict-content-to-staff/37682/7 "2023-06-21T09:29:59Z")

</div>

Exactly how I did it as well.

I did put the subscription price at a very large number per month just in-case someone accidentally comes across it and signs up (and they are more than welcome to whatever content I put behind it for $9,999 per month :D )
