Check permissions FIX

This commit is contained in:
paolo
2016-04-22 16:43:01 +02:00
parent 18df562208
commit f154e6dd5d
5 changed files with 17 additions and 7 deletions
+3 -3
View File
@@ -54,7 +54,7 @@ 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->_addonID, 'person'))
if(isAllowed($this->getAddonID(), 'person'))
{
if((isset($code)) && (isset($email)))
{
@@ -135,7 +135,7 @@ 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->_addonID, 'person'))
if(isAllowed($this->getAddonID(), 'person'))
{
if($this->_validate($person))
{
@@ -331,7 +331,7 @@ 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->_addonID, 'person'))
if(isAllowed($this->getAddonID(), 'person'))
{
return $this->_saveInterestedStudent($interestedStudent);
}