diff --git a/trunk/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc b/trunk/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc
index 1ce25e12db65a58967c347c0fe865133df59815f..ece1e48ece05d3095c452e6401fbe7cb417d5991 100644 (file)
$disallowed = array();
foreach($ids as $id){
$dn = $this->ogrouplist[$id]['dn'];
- $acl = $this->ui->get_permissions($dn, "users/user");
+ $acl = $this->ui->get_permissions($dn, "ogroups/ogroup");
if(preg_match("/d/",$acl)){
$this->dns[$id] = $dn;
}else{
/* Remove user by user and check acls before removeing them */
foreach($this->dns as $key => $dn){
- $acl = $this->ui->get_permissions($dn, "ogroups");
+ $acl = $this->ui->get_permissions($dn, "ogroups/ogroup");
if (preg_match('/d/', $acl)){
/* Delete request is permitted, perform LDAP action */
/* Load permissions for selected 'dn' and check if
we're allowed to remove this 'dn' */
- $acl = $this->ui->get_permissions($this->dn,"ogroups");
+ $acl = $this->ui->get_permissions($this->dn,"ogroups/ogroup");
if(preg_match("/d/",$acl)){
/* Check locking, save current plugin in 'back_plugin', so
/* Some nice guy may send this as POST, so we've to check
for the permissions again. */
- $acl = $this->ui->get_permissions($this->dn,"ogroups");
+ $acl = $this->ui->get_permissions($this->dn,"ogroups/ogroup");
if(preg_match("/d/",$acl)){
/* Delete request is permitted, perform LDAP action */