Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #707 from beyondcode/fix/search-by-key
Browse files Browse the repository at this point in the history
[1.x] Revert findByKey
  • Loading branch information
rennokki authored Mar 2, 2021
2 parents b793f7b + ea59a17 commit 583022a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Statistics/Http/Middleware/Authorize.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ class Authorize
{
public function handle($request, $next)
{
$app = App::findByKey($request->key);

return is_null($app) || $app->secret !== $request->secret
? abort(403)
: $next($request);
return is_null(App::findBySecret($request->secret)) ? abort(403) : $next($request);
}
}

0 comments on commit 583022a

Please sign in to comment.