login | register
Mon 08 of Sep, 2008 (03:56 UTC)

bitweaver - Web Application Framework and CMS

Web Application Framework and CMS

Refresh cache

How do I check a user permission in Smarty?

by Stephan Borg
Friday 01 of July, 2005
Posted to Developer's FAQ
{if $gBitUser->hasPermission( 'bit_p_read_article' )}
  <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}index.php">{biticon ipackage=liberty iname=home iexplain="articles home"} {tr}Articles Home{/tr}</a></li>
  <li><a class="item" href="{$gBitLoc.ARTICLES_PKG_URL}list.php">{bitcon ipackage=liberty iname=list iexplain="list articles"} {tr}List articles{/tr}</a></li>
{/if}

Comments