public function authorize() { if (!$this->can_view()) { return false; } $c_id = Request::get_c_id(); if (empty($c_id)) { return false; } return true; }