mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +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:
@@ -26,10 +26,6 @@ class Dms extends APIv1_Controller
|
||||
$this->load->model('content/Dms_model', 'DmsModel');
|
||||
$this->load->model('content/DmsVersion_model', 'DmsVersionModel');
|
||||
$this->load->model('content/DmsFS_model', 'DmsFSModel');
|
||||
// Set the uid of the model to let to check the permissions
|
||||
$this->DmsModel->setUID($this->_getUID());
|
||||
$this->DmsVersionModel->setUID($this->_getUID());
|
||||
$this->DmsFSModel->setUID($this->_getUID());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user