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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -