Conditional - If user logged in

I am trying to add a notice on the footer when a user (free or paid) is logged in but it does not seem to be working. It displays the logged out message at all times.

These are the helpers I am using:

{{#if access}}
<p>Logged in message </p>
{{else}}
{{!-- Do not display logged out message on signing or signup pages --}}
{{^is "signin, signup"}}
<p>Logged out message </p> 
{{/is}}
 {{/if}}

{{#if access}} will only work inside a {{#post}} context because it checks a member’s ability to see the post.

I think you need {{#if @member}} instead.

https://ghost.org/docs/themes/members/#the-member-object

1 Like

Thank you Kevin.