mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 09:22:22 +00:00
Check permissions
This commit is contained in:
@@ -21,7 +21,7 @@ class Nation_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($this->_checkPermissions())
|
||||
if(isAllowed($this->_addonID, 'person'))
|
||||
{
|
||||
$result = $this->db->query($this->_getNationQuery($notLocked, $orderEnglish));
|
||||
}
|
||||
@@ -61,7 +61,7 @@ class Nation_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($this->_checkPermissions())
|
||||
if(isAllowed($this->_addonID, 'person'))
|
||||
{
|
||||
$result = $this->db->query($this->_federalStateQuery);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user