Esempio n. 1
0
 static function echoAdmin()
 {
     if (self::$echoAdmin === FALSE) {
         $user = JFactory::getUser();
         if ($user->authorise('core.admin', 'com_tsmart') or $user->authorise('core.manage', 'com_tsmart')) {
             self::$echoAdmin = true;
         } else {
             self::$echoAdmin = false;
         }
     }
 }