Code

Added create acls
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Nov 2006 12:29:20 +0000 (12:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Nov 2006 12:29:20 +0000 (12:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5035 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupManagement.inc

index f167c143241118c8c3ed2dfde70e5fdf50812f94..80b567a04e93aff62f55da60e60e9f9aaf82f7a3 100644 (file)
@@ -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);
+      }
     }