示例#1
0
 public function canEdit($userID = null)
 {
     $app = JFactory::getApplication();
     $user = JFactory::getUser();
     if ($app->isAdmin() || $user->authorise('core.admin', 'com_judirectory')) {
         return false;
     }
     return parent::canEdit($userID);
 }
 public function canEdit($userID = null)
 {
     $app = JFactory::getApplication();
     if ($app->isSite()) {
         return false;
     } else {
         return parent::canEdit($userID);
     }
 }