diff options
Diffstat (limited to 'modules-available/runmode/page.inc.php')
-rw-r--r-- | modules-available/runmode/page.inc.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules-available/runmode/page.inc.php b/modules-available/runmode/page.inc.php index f8b48152..0b6dfa02 100644 --- a/modules-available/runmode/page.inc.php +++ b/modules-available/runmode/page.inc.php @@ -221,14 +221,13 @@ class Page_RunMode extends Page $modules[$row['module']]['list'][] = $row; } foreach ($modules as $moduleId => $rows) { + $disabled = ''; if ($onlyModule === false) { // Permissions - not required if rendering specific module, since it's been already done - if ($rows['config']->userHasPermission(null)) { - $disabled = ''; - } elseif (User::hasPermission('list-all')) { + if (!$rows['config']->userHasPermission(null)) { + if (!User::hasPermission('list-all')) + continue; $disabled = 'disabled'; - } else { - continue; } // </Permissions> } $module = Module::get($moduleId); |