summaryrefslogtreecommitdiff
path: root/plugins/kolab_delegation
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-04-14 16:13:51 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-04-14 16:13:51 (GMT)
commit0bd58bddfc87a637ab73b6f0d8fd558418843b38 (patch)
treeebd271e699473d78452bac6e57e575d87c98a4b7 /plugins/kolab_delegation
parent49f9771ed437488aab2b21f9a7482d8587af57bd (diff)
downloadroundcubemail-plugins-kolab-0bd58bddfc87a637ab73b6f0d8fd558418843b38.tar.gz
Fix bug where user could delegate himself (Bug #2981)
Diffstat (limited to 'plugins/kolab_delegation')
-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']) {