mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- Added permission basis/phrase to dump.sql
- The function getAuthUID() present in the helper fhcauth_helper.php now tries to work always with CI session to get the uid - REST_controller doesn't need anymore to handle the uid - FHC_Controller and FHC_Model load fhcauth_helper in their constructor, so any class that extends them now could call the function getAuthUID() anywhere in the code - The controllers don't need anymore to pass the uid to the models or to the libraries - Library FHC_DB_ACL load fhcauth_helper in its constructor and uses getAuthID()
This commit is contained in:
@@ -352,11 +352,6 @@ abstract class REST_Controller extends CI_Controller {
|
||||
self::HTTP_NOT_IMPLEMENTED => 'NOT IMPLEMENTED'
|
||||
];
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
protected $_uid = NULL;
|
||||
|
||||
/**
|
||||
* Extend this function to apply additional checking early on in the process
|
||||
*
|
||||
@@ -1906,25 +1901,6 @@ abstract class REST_Controller extends CI_Controller {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TO BE COMMENTED
|
||||
*/
|
||||
private function _setUID($username)
|
||||
{
|
||||
if (!isset($this->_uid) && isset($username))
|
||||
{
|
||||
$this->_uid = $username;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int ID of the authenticated caller
|
||||
*/
|
||||
protected function _getUID()
|
||||
{
|
||||
return $this->_uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepares for basic authentication
|
||||
*
|
||||
@@ -1964,10 +1940,6 @@ abstract class REST_Controller extends CI_Controller {
|
||||
{
|
||||
$this->_force_login();
|
||||
}
|
||||
else // If logged
|
||||
{
|
||||
$this->_setUID($username);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user