# How to check if the user is a page admin in the theme?

**URL:** <https://forum.ghost.org/t/how-to-check-if-the-user-is-a-page-admin-in-the-theme/36537>\
**Category:** Developer help\
**Created:** [February 20, 2023, 10:00am UTC](https://forum.ghost.org/t/how-to-check-if-the-user-is-a-page-admin-in-the-theme/36537 "2023-02-20T10:00:29Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [February 20, 2023, 3:29pm UTC](https://forum.ghost.org/t/how-to-check-if-the-user-is-a-page-admin-in-the-theme/36537/4 "2023-02-20T15:29:37Z")

</div>

> [@Edit post button](https://forum.ghost.org/t/edit-post-button/13857/3):
>
> @mattes3 the front-end and the admin are intentionally disconnected for security. With most setups there’s no way for the site to know if you’re logged into the admin area which precludes making a conditional button. The /edit url redirect is the best way to jump from a post to the edit screen. If it’s something you do a lot you could always add a script to your theme/code injection to implement a hidden shortcut so that if you pressed Cmd+E for example it loads window.location + 'edit'

---

_[View the full topic](https://forum.ghost.org/t/how-to-check-if-the-user-is-a-page-admin-in-the-theme/36537)._
