Method security checking

This commit is contained in:
Deon George
2013-05-15 15:39:04 +10:00
parent 067af280af
commit 81cb759667
2 changed files with 10 additions and 17 deletions

View File

@@ -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;