Publish LaySite copyright notice and AGPL license
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Middleware;
|
||||
|
||||
use App\Content\Licenses;
|
||||
use App\Content\Repository;
|
||||
use App\Content\SystemPage;
|
||||
use App\Controller\SiteController;
|
||||
@@ -16,7 +17,8 @@ final class SiteStatus implements MiddlewareInterface
|
||||
public function process(Request $request, callable $handler): Response
|
||||
{
|
||||
$path = $request->path();
|
||||
if ($path === '/admin' || str_starts_with($path, '/admin/')) {
|
||||
if ($path === '/admin' || str_starts_with($path, '/admin/')
|
||||
|| ($path === Licenses::PROJECT_PATH && in_array($request->method(), ['GET', 'HEAD'], true))) {
|
||||
return $handler($request);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user