Ejemplo n.º 1
0
 /**
  * Bind improliga permission rules to the visibility status. User
  * must have right to see the object to manipulate with it.
  *
  * @param string       $method
  * @param \System\User $user
  * @return bool
  */
 public function can_be($method, \System\User $user)
 {
     $can_he = parent::can_be($method, $user);
     if (!$can_he) {
         $is_visible = $this->is_visible_for($user);
     }
     return $can_he;
 }