|
|
@@ -77,17 +77,10 @@ class LikeAdminAllowMiddleware
|
|
|
if ($firstSegment === 'workerapi' || $firstSegment === 'adminapi'){
|
|
|
return $this->apiHandle($request, $next);
|
|
|
}
|
|
|
- elseif ($firstSegment !== 'admin') {
|
|
|
- return $this->handleTenantAccess($tenantModel, $domain, $request, $next, true);
|
|
|
- }
|
|
|
else {
|
|
|
- if ($domain !== Config::get('project.http_host')) {
|
|
|
- return view(app()->getRootPath() . 'public/error/platform/404.html');
|
|
|
- }
|
|
|
+ return $this->handleTenantAccess($tenantModel, $domain, $request, $next, true);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- return $next($request);
|
|
|
}
|
|
|
|
|
|
/**
|