mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 18:02:18 +00:00
Check permissions FIX
This commit is contained in:
@@ -33,7 +33,7 @@ class Course_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(), 'course'))
|
||||
{
|
||||
$result = $this->db->query($this->_enabledCoursesQuery);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user