diff options
author | Simon Rettberg | 2020-02-27 16:53:14 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-02-27 16:53:14 +0100 |
commit | b9f2db0d1cabe2b7180e230d3a19d64af5816e5b (patch) | |
tree | abda7d1611ae29fa7f856a3f7fff642b703641bd | |
parent | [minilinux] dnbd3-check: Handle RID, support 32bit php (diff) | |
download | slx-admin-3.9a.tar.gz slx-admin-3.9a.tar.xz slx-admin-3.9a.zip |
[runmode] Fix undefined variable accessv3.9a
-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); |