mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
ACL-System
This commit is contained in:
@@ -19,8 +19,8 @@ class Person_model extends DB_Model
|
||||
|
||||
// Checks if the operation is permitted by the API caller
|
||||
// All the code should be put inside this if statement
|
||||
if(isAllowed($this->getAddonID(), 'person'))
|
||||
{
|
||||
/*if(isAllowed($this->getAddonID(), 'person'))
|
||||
{*/
|
||||
if((isset($code)) && (isset($email)))
|
||||
{
|
||||
$result = $this->_getPersonByCodeAndEmail($code, $email);
|
||||
@@ -33,7 +33,7 @@ class Person_model extends DB_Model
|
||||
{
|
||||
$result = $this->_getPersonByID($personId);
|
||||
}
|
||||
}
|
||||
//}
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -826,4 +826,4 @@ class Person_model extends DB_Model
|
||||
->where("p.zugangscode", $code);
|
||||
return $this->db->get()->result_array();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user