Does anyone know why currentUser
would return null? I'm logged in as an admin.. actually the only user.
I've cleared cache, logged out and back in, etc. I can't seem to get it to work.
I'm trying to set an edit link for an entry like so:
{% if currentUser %}
<a href="{{ entry.cpEditUrl }}">
Edit
</a>
{% endif %}
And also tried this:
{% if entry.isEditable() %}
<a href="{{ entry.cpEditUrl }}">
Edit
</a>
{% endif %}
Neither are working. Any ideas?