mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
prevent using the numeric value of a group or user twice, by checking if it already exists for both sides
This commit is contained in:
parent
6a12b7c448
commit
47de1aa9f9
@ -1081,7 +1081,7 @@ class accounts_ldap
|
||||
{
|
||||
$account_id = (int) $GLOBALS['egw']->common->next_id($type,$min,$max);
|
||||
}
|
||||
while ($account_id && $this->frontend->exists($sign * $account_id)); // check need to include the sign!
|
||||
while ($account_id && ($this->frontend->exists($sign * $account_id) || $this->frontend->exists(-1 * $sign * $account_id))); // check need to include the sign!
|
||||
|
||||
if (!$account_id || $this->frontend->config['account_max_id'] &&
|
||||
$account_id > $this->frontend->config['account_max_id'])
|
||||
|
Loading…
Reference in New Issue
Block a user