summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 170e47e)
raw | patch | inline | side by side (parent: 170e47e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Apr 2008 13:28:01 +0000 (13:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Apr 2008 13:28:01 +0000 (13:28 +0000) |
-If release management is activated, hide application selection in ogroup add dialog.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10590 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10590 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/ogroups/class_ogroup.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc
index 398eed814d1e04d4f2ae6c7c8dfa32c2d123ac6a..c7ad8490ca8f6f73c72a335af40631b0ea4fa221 100644 (file)
"T" => msgPool::selectToView(_("groups")),
"C" => (isset($ogfilter['groups']) && ($ogfilter['groups'])),
"L" => sprintf(_("Show %s"),_("groups"))),
- "applications"=> array(
- "T" => msgPool::selectToView(_("applications")),
- "C" => (isset($ogfilter['applications']) && ($ogfilter['applications'])),
- "L" => sprintf(_("Show %s"),_("applications"))),
"servers"=> array(
"T" => msgPool::selectToView(_("servers")),
"C" => (isset($ogfilter['servers']) && ($ogfilter['servers'])),
"T" => msgPool::selectToView(_("phones")),
"C" => (isset($ogfilter['phones']) && ($ogfilter['phones'])),
"L" => sprintf(_("Show %s"),_("phones"))));
+
+ /* Allow selecting applications if we are having a non
+ release managed application storage */
+ if(!$this->IsReleaseManagementActivated()){
+ $ar["applications"] = array(
+ "T" => msgPool::selectToView(_("applications")),
+ "C" => (isset($ogfilter['applications']) && ($ogfilter['applications'])),
+ "L" => sprintf(_("Show %s"),_("applications")));
+ }
+
$smarty->assign("checkboxes",$ar);
$display= $smarty->fetch (get_template_path('ogroup_objects.tpl', TRUE, dirname(__FILE__)));
return ($display);
"DN"=> get_people_ou() ,"ACL" => "users"),
"groups" => array("OBJ"=>"group", "CLASS"=>"posixGroup" ,
"DN"=> get_groups_ou('ogroupou') ,"ACL" => "groups"),
- "applications" => array("OBJ"=>"application", "CLASS"=>"gosaApplication",
- "DN"=> get_ou('applicationou') ,"ACL" => "application"),
"departments" => array("OBJ"=>"department", "CLASS"=>"gosaDepartment" ,
"DN"=> "" ,"ACL" => "department"),
"servers" => array("OBJ"=>"servgeneric", "CLASS"=>"goServer" ,
"DN"=> get_ou('phoneou') ,"ACL" => "phone"));
+ /* Allow searching for applications, if we are not using release managed applications
+ */
+ if(!$this->IsReleaseManagementActivated()){
+ $p_f[ "applications"] = array("OBJ"=>"application", "CLASS"=>"gosaApplication",
+ "DN"=> get_ou('applicationou') ,"ACL" => "application");
+ }
+
/*###########
Perform search for selected objectClasses & regex to fill list with objects
###########*/
}
+ function IsReleaseManagementActivated()
+ {
+ /* Check if we should enable the release selection */
+ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
+ if(!empty($tmp)){
+ return(true);
+ }
+ return(false);
+ }
+
+
static function plInfo()
{
return (array(