Messaging sysntem: the internal email account is used only if the user

account is older then 24 hours
This commit is contained in:
Paolo
2020-11-09 10:45:25 +01:00
parent fa73cf5272
commit 443caa91f2
2 changed files with 40 additions and 6 deletions
+3 -1
View File
@@ -23,7 +23,8 @@ class Benutzer_model extends DB_Model
*/
public function getActiveUserByPersonIdAndOrganisationUnit($person_id, $oe_kurzbz)
{
$sql = 'SELECT b.uid
$sql = 'SELECT b.uid,
b.insertamum
FROM public.tbl_benutzer b
JOIN public.tbl_prestudent ps USING (person_id)
JOIN public.tbl_studiengang sg USING (studiengang_kz)
@@ -97,3 +98,4 @@ class Benutzer_model extends DB_Model
return mb_strtolower(str_replace(' ','_', $str));
}
}