Jump to content

hide menus if staff is not admin


Recommended Posts



Here's the support answer. I posted here if it's useful for someone



Probably the simplest way to handle this would be to do it based on the admin ID which is available in the session. So for example you could do something like wrapping any full admin only output in the following:


{if $smarty.session.adminid eq "1" || $smarty.session.adminid eq "4"}...{/if}


That way the code between that if statement would only execute and show for admin IDs 1 & 4. More can be added if needed.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated