diff options
Diffstat (limited to 'core/helpers/site_status.php')
-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>"; |