Skip to content

Commit

Permalink
Fix #28 config overriding issue from application/config path
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisaha committed Jul 7, 2017
1 parent 5803123 commit cb21b54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EzRbacHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ private function loadConfiguration()
{
$library_directory = basename($this->CI->ezRbacPath);
$this->CI->load->add_package_path(APPPATH . "third_party/$library_directory/");
$this->CI->load->remove_package_path(APPPATH);
$this->CI->load->add_package_path(APPPATH);
$this->CI->config->load('ez_rbac', TRUE, TRUE);
$this->CI->load->remove_package_path(APPPATH);
}

/**
Expand Down

0 comments on commit cb21b54

Please sign in to comment.