From: John Runyon Date: Tue, 23 Oct 2012 02:12:16 +0000 (+0300) Subject: Mostly minor changes. Fixed user level detection for displaying app menus. X-Git-Url: https://jfr.im/git/z_archive/KronOS.git/commitdiff_plain/7b1c4752b856a3a62673693e4607033d8c4e8b90 Mostly minor changes. Fixed user level detection for displaying app menus. --- diff --git a/application/libraries/Core.php b/application/libraries/Core.php index 862a37d..0d3cc11 100644 --- a/application/libraries/Core.php +++ b/application/libraries/Core.php @@ -18,7 +18,7 @@ class Core { $menu = array(); $ulev = $this->CI->user->level(); - if ($ulev == 'operator') $chklevel = "a.access = 'user' OR a.access = 'manager'"; + if ($ulev == 'operator') $chklevel = "a.access = 'user' OR a.access = 'operator'"; elseif ($ulev == 'manager') $chklevel = "1"; // full access -> always true else $chklevel = "a.access = 'user'"; // fallback @@ -56,15 +56,16 @@ class Core {
- +
- +
+ '; diff --git a/public/js/application.js b/public/js/application.js index 7708e75..5195983 100644 --- a/public/js/application.js +++ b/public/js/application.js @@ -52,11 +52,11 @@ var wos if (resp.success) { navStr = '