Fixed single access point deps
Change-Id: I3b1a493e08564bcd9e54b93af9af95ced1cdfa4d Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
parent
f9e3208d6e
commit
30ac30b491
|
@ -28,11 +28,11 @@ final class SingleAccessPoint
|
|||
public function handle($request, Closure $next)
|
||||
{
|
||||
// Perform action
|
||||
$checkpoint_service = ServiceLocator::getInstance()->getService(UtilsServiceCatalog::CheckPointService);
|
||||
if(Config::get('server.banning_enable', true))
|
||||
{
|
||||
try {
|
||||
//checkpoint security pattern entry point
|
||||
$checkpoint_service = ServiceLocator::getInstance()->getService(UtilsServiceCatalog::CheckPointService);
|
||||
if ($checkpoint_service instanceof ICheckPointService && !$checkpoint_service->check()) {
|
||||
return Response::view('errors.404', [], 404);
|
||||
}
|
||||
|
|
|
@ -256,6 +256,7 @@ final class RepositoriesProvider extends ServiceProvider
|
|||
public function provides()
|
||||
{
|
||||
return [
|
||||
IServerConfigurationRepository::class,
|
||||
IGroupRepository::class,
|
||||
IOpenIdAssociationRepository::class,
|
||||
IOpenIdTrustedSiteRepository::class,
|
||||
|
|
Loading…
Reference in New Issue