public function needAuthenticate() { if (!$this->EmployeeAuthentication->authenticated()) { header('Location: /admin/modules/employees/authorization'); exit; } }
public function authenticated() { return $this->EmployeeAuthentication->authenticated(); }