From: hickert Date: Tue, 7 Nov 2006 12:29:20 +0000 (+0000) Subject: Added create acls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f6c356cecd2022f811124fb76106e574e3109cf0;p=gosa.git Added create acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5035 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc index f167c1432..80b567a04 100644 --- a/plugins/admin/groups/class_groupManagement.inc +++ b/plugins/admin/groups/class_groupManagement.inc @@ -138,15 +138,20 @@ class groupManagement extends plugin /* New group? */ if ($s_action=="new"){ - /* By default we set 'dn' to 'new', all relevant plugins will - react on this. */ - $this->dn= "new"; + /* Check create permissions */ + $acl = $this->ui->get_permissions($this->DivListGroup->selectedBase,"groups/group"); + if(preg_match("/c/",$acl)){ - /* Create new usertab object */ - $this->grouptab= new grouptabs($this->config, $this->config->data['TABS']['GROUPTABS'], $this->dn); + /* By default we set 'dn' to 'new', all relevant plugins will + react on this. */ + $this->dn= "new"; - /* Set up the users ACL's for this 'dn' */ - $this->grouptab->set_acl_base($this->DivListGroup->selectedBase); + /* Create new usertab object */ + $this->grouptab= new grouptabs($this->config, $this->config->data['TABS']['GROUPTABS'], $this->dn); + + /* Set up the users ACL's for this 'dn' */ + $this->grouptab->set_acl_base($this->DivListGroup->selectedBase); + } }