Method security checking
This commit is contained in:
@@ -45,7 +45,7 @@ class Request extends Kohana_Request {
|
||||
$method = strtolower($this->_directory ? sprintf('%s_%s',$this->_directory,$this->_action) : $this->_action);
|
||||
|
||||
// Get the method number
|
||||
$mmo = ORM::factory('Module_Method',array('module_id'=>$mo->id,'name'=>$method));
|
||||
$mmo = $mo->module_method->where('name','=',$method)->find();
|
||||
|
||||
if ($mmo->loaded())
|
||||
$result = $mmo;
|
||||
|
Reference in New Issue
Block a user