Publish LaySite copyright notice and AGPL license

This commit is contained in:
2026-11-25 22:16:38 +08:00
parent acf59c9dfc
commit 080f146fef
10 changed files with 68 additions and 8 deletions
+3 -1
View File
@@ -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);
}