# Display Header HTML to Logged-in Users Only

**URL:** <https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806>\
**Category:** Product Support\
**Created:** [8 באפריל,‏ 2019,‏ 9:52pm UTC](https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806 "2019-04-08T21:52:16Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [9 באפריל,‏ 2019,‏ 7:51pm UTC](https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806/8 "2019-04-09T19:51:42Z")

</div>

Search meta for either “currentUser” or “api.getCurrentUser” and you should see several code examples. You can use this to determine whether a user is loggedin, and then act accordingly.

---

_[View the full topic](https://meta.discourse.org/t/display-header-html-to-only-logged-in-users/113806)._
