hasGlobalSysAdminRestriction($routeConfig) && isset($user['isSysAdmin']) && !$user['isSysAdmin']) || ($this->hasRouteSysAdminRestriction($routeConfig) && isset($user['isSysAdmin']) && !$user['isSysAdmin']) || ($this->hasGlobalAdminRestriction($routeConfig) && isset($user['isAdmin']) && !$user['isAdmin']) || ($this->hasRouteAdminRestriction($routeConfig) && isset($user['isAdmin']) && !$user['isAdmin']) ) return false; return true; } public function handle($request, Closure $next, $routeMarker){ $routeConfig=parent::routeConfig($routeMarker); if($routeConfig===false){ debug::consign("Configuration de route erronée, Marker de route : $routeMarker",'ROUTING','ERROR'); } if($this->userIsAllowed($routeConfig,session('user'))) return $next($request); abort(403, 'Unauthorized access'); } }