Fixed iCal sharing API route was always unauthenticated (fixes #993, references #921)

This commit is contained in:
Bernd Bestel 2020-09-07 08:30:08 +02:00
parent 3f1135713a
commit 5b05254816
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -58,6 +58,7 @@ class ApiKeyAuthMiddleware extends AuthMiddleware
if ($request->getQueryParam('secret') !== null && $apiKeyService->IsValidApiKey($request->getQueryParam('secret'), ApiKeyService::API_KEY_TYPE_SPECIAL_PURPOSE_CALENDAR_ICAL)) if ($request->getQueryParam('secret') !== null && $apiKeyService->IsValidApiKey($request->getQueryParam('secret'), ApiKeyService::API_KEY_TYPE_SPECIAL_PURPOSE_CALENDAR_ICAL))
{ {
$validApiKey = true; $validApiKey = true;
$usedApiKey = $request->getQueryParam('secret');
} }
} }
} }