How to make part of theme visible only to administrators

From JReviews Documentation
Revision as of 23:55, 8 July 2020 by Jreviews (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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;?>