if statement - Smart job board top menu items restriction for user -


i'm working on smart job board script customization. here thing:

i want restrict menu item guest , job seaker i'm writing follow script not working.

{if $globals.current_user.group.id != "jobseeker"}         {if $globals.current_user.group.id != "guest"}         <li><a href="{$globals.site_url}/search-resumes/" >[[search resumes]]</a></li>     {/if} {/if} 

can tell me i'm going wrong ?

i forgot check weather user logged in or not. following code helped me hide menu item in

smart-job-board

{if $globals.current_user.logged_in}   {if $globals.current_user.group.id != "jobseeker"}         {if $globals.current_user.group.id != "guest"}         <li><a href="{$globals.site_url}/search-resumes/" >[[search resumes]]</a></li>     {/if}   {/if} {/if} 

this helped me hide menu item.


Comments