Code

Updated aclResolver
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Nov 2010 12:30:04 +0000 (12:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Nov 2010 12:30:04 +0000 (12:30 +0000)
-Allow to specify the users uid instead of its full name.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20340 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/references/class_aclResolver.inc

index b1b97c6563d69e1fc8f141d0745daa617144de2e..22d76e176f15159c76232476114329b163dfd822 100644 (file)
@@ -120,9 +120,20 @@ class aclResolver
                 $this->validateDn = $this->userMap[$d]['dn'];
                 $this->validateUid = $this->userMap[$d]['uid'][0];
                 $this->renderedList = "";
+            }else{
+
+                foreach($this->userMap as $string => $data){
+                    if($data['uid'][0] == $d){
+                        $this->validateDn = $data['dn'];
+                        $this->validateUid = $data['uid'][0];
+                        $this->renderedList = "";
+
+                    }
+                }
             }
         }
-       
+
         if(empty($this->renderedList)){
 
             $this->reload();