Fix bug where user could delegate himself (Bug #2981)

This commit is contained in:
Aleksander Machniak 2014-04-14 18:13:51 +02:00
parent 49f9771ed4
commit 0bd58bddfc

View file

@ -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']) {