Skip to content

Commit 361092d

Browse files
Merge pull request chriskacerguis#321 from hprakash/master
auth_override_class_method bug fix
2 parents 8836118 + 93dc5fb commit 361092d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

application/libraries/REST_Controller.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,10 @@ public function __construct()
285285
// Check if there is a specific auth type for the current class/method
286286
// _auth_override_check could exit so we need $this->rest->db initialized before
287287
$this->auth_override = $this->_auth_override_check();
288-
288+
289289
// Checking for keys? GET TO WorK!
290-
if (config_item('rest_enable_keys')) {
290+
// Skip keys test for $config['auth_override_class_method']['class'['method'] = 'none'
291+
if (config_item('rest_enable_keys') and $this->auth_override !== true) {
291292
$this->_allow = $this->_detect_api_key();
292293
}
293294

0 commit comments

Comments
 (0)