Exemplo n.º 1
0
 /**
  * Check if the user can use the active element
  *
  * @param   string $location To trigger plugin on
  * @param   string $event    To trigger plugin on
  *
  * @return  bool can use or not
  */
 public function canUse($location = null, $event = null)
 {
     $params = $this->getParams();
     if ($this->user->get('id') != 0) {
         if ($params->get('captcha-showloggedin', 0) == 0) {
             return false;
         }
     }
     return parent::canUse();
 }