From 12a853815cd3ed4e9a22c10b778006c6b412f861 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 23 Nov 2010 12:30:04 +0000 Subject: [PATCH] Updated aclResolver -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 --- .../generic/references/class_aclResolver.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/generic/references/class_aclResolver.inc b/gosa-core/plugins/generic/references/class_aclResolver.inc index b1b97c656..22d76e176 100644 --- a/gosa-core/plugins/generic/references/class_aclResolver.inc +++ b/gosa-core/plugins/generic/references/class_aclResolver.inc @@ -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(); -- 2.30.2