Fix bug where user could delegate himself (Bug #2981)
This commit is contained in:
parent
49f9771ed4
commit
0bd58bddfc
1 changed files with 5 additions and 0 deletions
|
@ -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']) {
|
||||
|
|
Loading…
Add table
Reference in a new issue