From c2c119e3f318480e1ac39f2d3fbe383cb4964c73 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 5 Oct 2009 09:43:24 +0000 Subject: [PATCH] Added new userManagement filter -> phone account git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14507 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/users/class_divListUsers.inc | 5 +++++ gosa-core/plugins/admin/users/class_userManagement.inc | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gosa-core/plugins/admin/users/class_divListUsers.inc b/gosa-core/plugins/admin/users/class_divListUsers.inc index a83e827a2..e9698c400 100644 --- a/gosa-core/plugins/admin/users/class_divListUsers.inc +++ b/gosa-core/plugins/admin/users/class_divListUsers.inc @@ -37,6 +37,7 @@ class divListUsers extends MultiSelectWindow var $ShowMailUsers; var $ShowSambaUsers; var $ShowProxyUsers; + var $ShowPhoneUsers; /* Subsearch checkbox */ var $SubSearch = false; @@ -88,6 +89,10 @@ class divListUsers extends MultiSelectWindow $this->AddCheckBox("ShowSambaUsers" ,msgPool::selectToView(_("Samba"),"enabled") ,sprintf(_("Show %s"),_("samba users")), true); $this->AddCheckBox("ShowProxyUsers" ,msgPool::selectToView(_("Proxy"),"enabled") ,sprintf(_("Show %s"),_("proxy users")), true); + if(class_available("phoneAccount")){ + $this->AddCheckBox("ShowPhoneUsers" ,msgPool::selectToView(_("Phone"),"enabled") ,sprintf(_("Show %s"),_("phone users")), true); + } + /* Add SubSearch checkbox */ $this->AddCheckBox(SEPERATOR); $this->AddCheckBox("SubSearch", msgPool::selectToView("","subsearch"), msgPool::selectToView("","subsearch_small"), false); diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index f3bb65658..3e99ac0a8 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -1132,6 +1132,7 @@ class userManagement extends plugin $ShowMailUsers = $this->DivListUsers->ShowMailUsers; $ShowSambaUsers = $this->DivListUsers->ShowSambaUsers; $ShowProxyUsers = $this->DivListUsers->ShowProxyUsers; + $ShowPhoneUsers = $this->DivListUsers->ShowPhoneUsers; /* Setup filter depending on selection */ $filter=""; @@ -1154,6 +1155,9 @@ class userManagement extends plugin if ($ShowProxyUsers){ $filter.= "(objectClass=gosaProxyAccount)"; } + if ($ShowPhoneUsers){ + $filter.= "(objectClass=gofonAccount)"; + } if ($ShowTemplates){ $filter= "(|(objectClass=gosaUserTemplate)(&(objectClass=gosaAccount)(|$filter)))"; } else { -- 2.30.2