ansible-roles/roles/kimai/files/kimai_empty_authorization.patch
2024-04-29 15:01:11 +02:00

12 lines
474 B
Diff

--- src/API/Authentication/ApiRequestMatcher.php.orig 2024-04-29 13:28:50.876284724 +0200
+++ src/API/Authentication/ApiRequestMatcher.php 2024-04-29 13:29:14.366580152 +0200
@@ -27,7 +27,7 @@
}
// let's use this firewall if a Bearer token is set in the header
- if ($request->headers->has('Authorization')) {
+ if ($request->headers->has('Authorization') && $request->headers->get('Authorization') != "") {
return true;
}