AuthLib->_createAuthObjByPerson now checks that the benutzer is active, and no more the person

This commit is contained in:
Paolo
2019-12-18 12:43:39 +01:00
parent a20e8da298
commit 1a298c7e46
+5 -4
View File
@@ -574,10 +574,11 @@ class AuthLib
// Needed information
$this->_ci->PersonModel->addSelect('person_id, vorname, nachname, uid');
// Retrieves the uid if it is possible
$this->_ci->PersonModel->addJoin('public.tbl_benutzer', 'person_id', 'LEFT');
$queryParamsArray['tbl_person.aktiv'] = true; // only active users!
// Retrieves the uid if it is possible for active users
$this->_ci->PersonModel->addJoin(
'(SELECT uid, person_id FROM public.tbl_benutzer WHERE aktiv = TRUE) tb', 'person_id',
'LEFT'
);
// Execute query with where clause
$personResult = $this->_ci->PersonModel->loadWhere($queryParamsArray);