diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-30 04:13:03 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-30 04:13:03 +0000 |
commit | 5f14623a47006a4e9ef981e95f09f7932862c29f (patch) | |
tree | 902b0f40b2cd09368020bf3abb9f340cd27d8c04 | |
parent | 8aebdf4e19106e86b5c1e298d270a070f13e2174 (diff) |
Only show site status to admins
-rw-r--r-- | core/helpers/site_status.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/helpers/site_status.php b/core/helpers/site_status.php index e35a2a8a..eb9abb6b 100644 --- a/core/helpers/site_status.php +++ b/core/helpers/site_status.php @@ -95,8 +95,10 @@ class site_status_Core { * @return html text */ public function get() { + if (!user::active()->admin) { + return; + } $buf = array(); - foreach (ORM::factory("message")->find_all() as $msg) { $value = str_replace('__CSRF__', access::csrf_token(), $msg->value); $buf[] = "<li class=\"" . self::severity_class($msg->severity) . "\">$value</li>"; |