mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +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:
@@ -22,7 +22,7 @@ class Messages extends VileSci_Controller
|
||||
if (empty($person_id))
|
||||
$person_id = $this->input->post('person_id', TRUE);
|
||||
if (empty($person_id))
|
||||
$msg = $this->messagelib->getMessagesByUID($this->getUID());
|
||||
$msg = $this->messagelib->getMessagesByUID(getAuthUID());
|
||||
else
|
||||
$msg = $this->messagelib->getMessagesByPerson($person_id);
|
||||
if ($msg->error)
|
||||
@@ -30,7 +30,7 @@ class Messages extends VileSci_Controller
|
||||
|
||||
$data = array
|
||||
(
|
||||
'uid' => $this->getUID(),
|
||||
'uid' => getAuthUID(),
|
||||
'messages' => $msg->retval
|
||||
);
|
||||
if (!empty($person_id))
|
||||
@@ -47,7 +47,7 @@ class Messages extends VileSci_Controller
|
||||
if (empty($person_id))
|
||||
$person_id = $this->input->post('person_id', TRUE);
|
||||
if (empty($person_id))
|
||||
$msg = $this->messagelib->getMessagesByUID($this->getUID());
|
||||
$msg = $this->messagelib->getMessagesByUID(getAuthUID());
|
||||
else
|
||||
$msg = $this->messagelib->getMessagesByPerson($person_id);
|
||||
if ($msg->error)
|
||||
@@ -55,7 +55,7 @@ class Messages extends VileSci_Controller
|
||||
|
||||
$data = array
|
||||
(
|
||||
'uid' => $this->getUID(),
|
||||
'uid' => getAuthUID(),
|
||||
'messages' => $msg->retval
|
||||
);
|
||||
if (!empty($person_id))
|
||||
|
||||
Reference in New Issue
Block a user