From 5f14623a47006a4e9ef981e95f09f7932862c29f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 30 Dec 2008 04:13:03 +0000 Subject: Only show site status to admins --- core/helpers/site_status.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/helpers') 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[] = "
  • severity) . "\">$value
  • "; -- cgit v1.2.3