mirror of https://github.com/MISP/MISP
Merge branch '2.4' into develop
commit
92c15afcbf
|
@ -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