Merge branch '2.4' into develop

pull/9764/head
iglocska 2024-06-05 08:14:01 +02:00
commit 92c15afcbf
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();