From: hickert Date: Thu, 31 Aug 2006 04:44:24 +0000 (+0000) Subject: Some acl fixes for group divlist X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c53353dba112997f6c70f652aaab5a810ff8a1d9;p=gosa.git Some acl fixes for group divlist git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4548 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_divListGroup.inc b/plugins/admin/groups/class_divListGroup.inc index e3bf0ca57..55704051b 100644 --- a/plugins/admin/groups/class_divListGroup.inc +++ b/plugins/admin/groups/class_divListGroup.inc @@ -105,8 +105,10 @@ class divListGroup extends MultiSelectWindow } } + $acls = $ui->get_permissions($this->selectedBase,"groups/group"); + /* Get copy & paste icon */ - if(preg_match("/w/",$ui->get_permissions($this->selectedBase,"groups/group")) && $this->parent->CopyPasteHandler){ + if(preg_match("/w/",$acls) && $this->parent->CopyPasteHandler){ $Copy_Paste = $this->parent->CopyPasteHandler->generatePasteIcon(); }else{ $Copy_Paste =""; @@ -120,9 +122,13 @@ class divListGroup extends MultiSelectWindow "  ". "  ". "  "; - $listhead .= $this->get_snapshot_header($this->selectedBase); - $acls = $ui->get_permissions($this->selectedBase,"groups/group"); + if(preg_match("/c/",$acls) && preg_match("/w/",$acls)){ + $listhead .= $this->get_snapshot_header($this->selectedBase); + }else{ + $listhead .= " "; + } + if(preg_match("/c/",$acls)) { $listhead.="  "; @@ -198,7 +204,10 @@ class divListGroup extends MultiSelectWindow src='images/edit.png' alt='"._("edit")."' name='group_edit_%KEY%' title='"._("Edit this entry")."'>"; } - $actions.= $this->GetSnapShotActions($val['dn']); + + if(preg_match("/w/",$ui->get_permissions($val['dn'],"groups/group"))){ + $actions.= $this->GetSnapShotActions($val['dn']); + } if(preg_match("/d/",$ui->get_permissions($val['dn'],"groups/group"))){ $actions.= "dn; } - if (!$this->acl_is_createable()){ + if ($this->orig_dn == "new" && !$this->acl_is_createable()){ $message[]= _("You have no permissions to create a group on this 'Base'."); }