Testeando controlador clientes

This commit is contained in:
Jaime Jimenez
2023-04-27 18:29:38 +02:00
parent 10160ca029
commit c1bef7a7ed
5 changed files with 91 additions and 70 deletions

View File

@ -46,6 +46,7 @@ class LoginAuthFilter implements FilterInterface
$language->setLocale(session()->lang);
$getWhiteList = $this->whiteListController();
foreach ($getWhiteList as $item){
if(strtolower($item) == $uri->getSegment(1)){
return true;
@ -83,6 +84,8 @@ class LoginAuthFilter implements FilterInterface
public function whiteListController(){
return [
'',
'Clientes',
'BaseController',
'Home',
'Login',
@ -94,7 +97,8 @@ class LoginAuthFilter implements FilterInterface
'Ajax',
'Integration',
'Migrate',
'Test'
'Test',
];
}