Code improvements

This commit is contained in:
2026-09-04 09:27:48 +02:00
parent d23e6c3914
commit 4bb64b0053
51 changed files with 30702 additions and 87 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ class LvOnlyMiddleware
{
public function handle($request, Closure $next)
{
if (app('tenant')->slug !== 'lv') {
if (currentTenant()->slug !== 'lv') {
return redirect('/admin')->with('message', 'Diese Funktion ist nur auf LV-Ebene verfügbar.');
}