This commit is contained in:
Paminger
2016-03-14 07:10:51 +01:00
parent f4aa42caa1
commit d28f79e855
4 changed files with 68 additions and 6 deletions
+6 -3
View File
@@ -1,9 +1,9 @@
<?php
class Person_model extends DB_Model
{
public function __construct()
public function __construct($uid=null)
{
parent::__construct();
parent::__construct($uid);
}
public function getPersonen($person_id = FALSE)
@@ -20,7 +20,10 @@ class Person_model extends DB_Model
public function getPersonByCode($code)
{
$query = $this->db->get_where('public.tbl_person', array('zugangscode' => $code));
if ($this->fhc_db_acl->bb->isBerechtigt('person','s'))
{
$query = $this->db->get_where('public.tbl_person', array('zugangscode' => $code));
return $query->result_object();
}
}
}