[eluser]mattoebs[/eluser]
Hi everyone,
I'm trying to write some code that will show one content set to an admin, another to a user and redirect anyone else to a log in page.
at the moment i have
{if $userdata.admin == 'true'}
$content
{if $userdata.manager == 'true'}
$man_content
{else}
redirect (admin/login)
{/if}
It's not working though it keeps telling me the else statement is creating an error. Can anyone help?