From 5c42001eb9352d83e191c1c53bf0546c8755d13b Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Fri, 18 May 2012 10:08:18 -0400
Subject: [PATCH] - Show search field only for "normal" users, not mail users.
---
interface/lib/app.inc.php | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index ff344d0..7f73f74 100755
--- a/interface/lib/app.inc.php
+++ b/interface/lib/app.inc.php
@@ -245,6 +245,12 @@
if(isset($_SESSION['s']['user'])) {
$this->tpl->setVar('cpuser', $_SESSION['s']['user']['username']);
$this->tpl->setVar('logout_txt', $this->lng('logout_txt'));
+ /* Show search field only for normal users, not mail users */
+ if(stristr($_SESSION['s']['user']['username'],'@')){
+ $this->tpl->setVar('usertype', 'mailuser');
+ } else {
+ $this->tpl->setVar('usertype', 'normaluser');
+ }
}
/* Global Search */
--
Gitblit v1.9.1