{if jrUser_is_admin()}{/if}

Table of Contents:


Overview
User is Admin
  • Overview

    The jrUser_is_admin() function returns TRUE or FALSE to the question "Is the user an admin level user?".

    This can be used in conjunction with the {if} template block to allow skin designers to show a section of the page only to users who are logged in.
  • User is Admin

    To show a section of code to a user who is either a profile admin or a master admin level user:
    {if jrUser_is_admin()} 
        // This section will only be visible to admin level users
    
    {/if}

Tags