Skip to content

Commit

Permalink
Update Authorization.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGrubb committed Nov 4, 2020
1 parent 545d071 commit 6ee01ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CoolApi/Core/Authorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ private function validateKey () {
// Make sure keys are provided in array format.
if (!is_array($this->instance->config->apiKeys['keys'])) return $this->unauthorized();

$passes = false;

/**
* Iterate through the keys, and validate it as a valid key.
*/
Expand Down

0 comments on commit 6ee01ee

Please sign in to comment.