- Renamed BenutzerfunktionModel->getByPersonId to getActiveFunctionsByPersonId

- BenutzerfunktionModel->getActiveFunctionsByPersonId changed query to get only active functions
- Removed commented code
This commit is contained in:
Paolo
2020-02-26 17:22:59 +01:00
parent a50cc6cba8
commit 34b6581849
4 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ class MessageLib
$this->_ci->load->model('person/Benutzerfunktion_model', 'BenutzerfunktionModel');
// Retrieves organisation units for a user from database
$benutzer = $this->_ci->BenutzerfunktionModel->getByPersonId($sender_id);
$benutzer = $this->_ci->BenutzerfunktionModel->getActiveFunctionsByPersonId($sender_id);
if (isSuccess($benutzer)) // if everything is ok
{
$ouArray = array();