How to make part of theme visible only to administrators

From JReviews Documentation
Jump to: navigation, search

Use this code:

JReviews 2

<?php if($this->Access->isAdmin()):?>
   // Everything here will be available only to admins
<?php endif;?>

JReviews 3

<?php if($this->auth->admin):?>
   // Everything here will be available only to admins
<?php endif;?>