mirror of https://github.com/MISP/MISP
fix: [modules] /queryEnrichment endpoint fixed in modules controller - correctly pass module data
- fixes #9758pull/9166/merge
parent
71f8e125e5
commit
b925f98b75
|
@ -22,7 +22,7 @@ class ModulesController extends AppController
|
|||
if (!Configure::read('Plugin.Enrichment_' . $modname . '_enabled')) {
|
||||
throw new MethodNotAllowedException('Module not found or not available.');
|
||||
}
|
||||
if (!$this->Module->canUse($this->Auth->user(), 'Enrichment', $modname)) {
|
||||
if (!$this->Module->canUse($this->Auth->user(), 'Enrichment', $module)) {
|
||||
throw new MethodNotAllowedException('Module not found or not available.');
|
||||
}
|
||||
$options = array();
|
||||
|
|
Loading…
Reference in New Issue