/** * Check authorization. * * @param string $action * * @return bool */ protected function authorize($action = null) { if (empty($action)) { return false; } return $this->foundation->acl()->can($action); }