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