Code

Replaced group ou with get_groups_ou function
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 26 Oct 2006 04:17:02 +0000 (04:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 26 Oct 2006 04:17:02 +0000 (04:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4940 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc

index 1d758a2f699604625eabcdd862d2ba0574f03dea..2c546dfab8707b6372ef2f26aaf78c75f9fd24de 100644 (file)
@@ -1204,7 +1204,7 @@ class user extends plugin
         
           foreach($attrs['gosaSubtreeACL'] as $attr){
             if((preg_match("/:user#/",$attr))||(preg_match("/:all/",$attr))){
-              $s =  preg_replace("/^.*ou=groups,/","",$attrs['dn']);
+              $s =  preg_replace("/^.*".get_groups_ou().",/","",$attrs['dn']);
 
               foreach($this->config->idepartments as $key => $dep) {
                 if(preg_match("/".$s."/i",$key)){