Skip to content

Commit 56ed45b

Browse files
committed
Logic failure when checking for auth_override
if auth_override is true it shall not pass
1 parent 1eb8cb9 commit 56ed45b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/libraries/REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ public function __construct($config = 'rest')
540540
}
541541

542542
// When there is no specific override for the current class/method, use the default auth value set in the config
543-
if ($this->auth_override === FALSE && !($this->config->item('rest_enable_keys') && $this->_allow === TRUE) || ($this->config->item('allow_auth_and_keys') === TRUE && $this->_allow === TRUE))
543+
if ($this->auth_override === FALSE && (!($this->config->item('rest_enable_keys') && $this->_allow === TRUE) || ($this->config->item('allow_auth_and_keys') === TRUE && $this->_allow === TRUE)))
544544
{
545545
$rest_auth = strtolower($this->config->item('rest_auth'));
546546
switch ($rest_auth)

0 commit comments

Comments
 (0)