index 7be1906dbf7d85e237d638f2122096d5b699bf3f..b6fc3e3998109230811f1d9c1d9bab9b5311603f 100644 (file)
/* Add SubSearch checkbox */
//$this->AddCheckBox(SEPERATOR);
- //$this->AddCheckBox("SubSearch", _("Select to search within subtrees"), _("Ignore subtrees"), false);
+ //$this->AddCheckBox("SubSearch", _("Select to search within subtrees"), _("Search in subtrees"), false);
/* Name ,Text ,Default , Connect with alphabet */
$this->AddRegex ("Regex", _("Display users matching"),"*" , true);
}
- function AddUserBoxToFilter($position){
+ function AddUserBoxToFilter($position)
+ {
$str = "";
if($position == 2){
+
+ /* Check if there are post commands available for fai management.
+ * If not, grey out freeze/branch and release remove buttons.
+ */
+ $r = ("" != search_config($this->config->data,"faiManagement","POSTREMOVE"));
+ $c = ("" != search_config($this->config->data,"faiManagement","POSTCREATE"));
+
$smarty = get_smarty();
+ $smarty->assign("allow_create", $c);
+ $smarty->assign("allow_remove", $r);
$smarty->assign("selectedBranch",$this->selectedBranch);
$smarty->assign("branchimage","images/branch.png");
$smarty->assign("branches",$this->AvailableBranches);