From: hickert Date: Mon, 20 Nov 2006 07:58:13 +0000 (+0000) Subject: Fixed icons of member objects in object group overview. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=80fbbe32a9a6382e6a295375d633cb69fff90f15;p=gosa.git Fixed icons of member objects in object group overview. Fixed Copy & Paste and Snapshot icon acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5159 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/ogroups/class_divListOGroup.inc b/plugins/admin/ogroups/class_divListOGroup.inc index 69e6ce207..3c6ed8e66 100755 --- a/plugins/admin/ogroups/class_divListOGroup.inc +++ b/plugins/admin/ogroups/class_divListOGroup.inc @@ -110,7 +110,9 @@ class divListOGroup extends MultiSelectWindow } /* Get copy & paste icon */ - if(preg_match("/w/",$ui->get_permissions($this->selectedBase,"ogroups/ogroup")) && $this->parent->CopyPasteHandler){ + $acls = $ui->get_permissions($this->selectedBase,"ogroups/ogroup"); + $acl_all= $ui->has_complete_category_acls($this->selectedBase,"groups"); + if(preg_match("/(c.*w|w.*c)/",$acl_all) && $this->parent->CopyPasteHandler){ $Copy_Paste = $this->parent->CopyPasteHandler->generatePasteIcon(); }else{ $Copy_Paste =""; @@ -128,8 +130,8 @@ class divListOGroup extends MultiSelectWindow title='"._("Reload list")."' name='submit_department' alt='"._("Submit")."'> ". "  "; - $acls = $ui->get_permissions($this->selectedBase,"ogroups/ogroup"); - if(preg_match("/c/",$acls) && preg_match("/w/",$acls)){ + + if(preg_match("/(c.*w|w.*c)/",$acl_all)){ $listhead .= $this->get_snapshot_header($this->selectedBase); }else{ $listhead .= " "; @@ -180,18 +182,18 @@ class divListOGroup extends MultiSelectWindow /* Create action icons */ $actions= ""; - if($this->parent->CopyPasteHandler && preg_match("/w/",$ui->get_category_permissions($val['dn'],"ogroups"))){ + $acl_all= $ui->has_complete_category_acls($val['dn'],"groups"); + if(($this->parent->CopyPasteHandler) && preg_match("/(c.*w|w.*c)/",$acl_all)){ $actions.= " "; $actions.= " "; } - $actions.= ""; - if(preg_match("/w/",$ui->get_permissions($val['dn'],"groups/group"))){ + if(preg_match("/(c.*w|w.*c)/", $acl_all)){ $actions.= $this->GetSnapShotActions($val['dn']); } @@ -199,7 +201,7 @@ class divListOGroup extends MultiSelectWindow $actions.= ""; }else{ - $action.= " "; } diff --git a/plugins/admin/ogroups/class_ogroupManagement.inc b/plugins/admin/ogroups/class_ogroupManagement.inc index f3a3ad259..4883ecbb2 100644 --- a/plugins/admin/ogroups/class_ogroupManagement.inc +++ b/plugins/admin/ogroups/class_ogroupManagement.inc @@ -366,11 +366,13 @@ class ogroupManagement extends plugin $p1['tit']= $conv[$type[0]][1]; $p1['alt']= $type[0]; $p1['lnk']= $conv[$type[0]][2]; + $html_object_1 = ""; - $temp.= ""; return ($temp); }