summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/kolab_delegation/kolab_delegation_engine.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/kolab_delegation/kolab_delegation_engine.php b/plugins/kolab_delegation/kolab_delegation_engine.php
index ef869f2..ad96831 100644
--- a/plugins/kolab_delegation/kolab_delegation_engine.php
+++ b/plugins/kolab_delegation/kolab_delegation_engine.php
@@ -427,6 +427,11 @@ class kolab_delegation_engine
$result = $ldap->search($fields, $search, $mode, (array)$this->ldap_login_field, $max);
foreach ($result as $record) {
+ // skip self
+ if ($record['dn'] == $_SESSION['kolab_dn']) {
+ continue;
+ }
+
$user = $this->parse_ldap_record($record);
if ($user['name']) {