Skip to content

Commit 0d10da3

Browse files
committed
Update ApiAuthMiddleware.php
1 parent 355adbd commit 0d10da3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/Http/Middleware/ApiAuthMiddleware.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ public function handle($request, Closure $next)
6262
private function canAccessRequestedVersion(string $path, array $rules): bool
6363
{
6464
if (strpos($path, 'v1/') === 0) {
65-
return !empty($rules['can_access_legacy_whatnow']);
65+
return $rules['can_access_legacy_whatnow'];
6666
}
6767

6868
if (strpos($path, 'v2/') === 0) {
69-
return !empty($rules['can_access_preparedness_v2']);
69+
return $rules['can_access_preparedness_v2'];
7070
}
7171

7272
return true;

0 commit comments

Comments
 (0)