fix: [modules] /queryEnrichment endpoint fixed in modules controller - correctly pass module data

- fixes #9758
pull/9166/merge
iglocska 2024-06-05 08:13:00 +02:00
parent 71f8e125e5
commit b925f98b75
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

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