Fix RLS permissions and JWT validation for admin club creation #5

Merged
MasterMito merged 18 commits from fix/rls-permission-test-failure into epic/admin_rework_second_try 2026-03-20 11:42:05 +01:00
Showing only changes of commit 0f9a7aba5c - Show all commits
+1 -6
View File
@@ -175,12 +175,7 @@ app.MapGet("/api/debug/claims", (HttpContext context) =>
hasAuthHeader = !string.IsNullOrEmpty(authHeader),
authHeaderPrefix = authHeader?.Substring(0, Math.Min(20, authHeader?.Length ?? 0))
});
}).RequireAuthorization()
.AddEndpointFilter(async (context, next) =>
{
// Skip tenant validation for debug endpoint
return await next(context);
});
});
app.MapTaskEndpoints();
app.MapShiftEndpoints();