mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Changed around get_type() to grab the user account first, then the group accout.
This commit is contained in:
parent
e372d5bcdc
commit
dba3fc60f0
@ -500,7 +500,7 @@
|
||||
$ds = $GLOBALS['phpgw']->common->ldapConnect();
|
||||
|
||||
$allValues = array();
|
||||
$sri = ldap_search($ds, $this->group_context, "(&(gidnumber=$account_id)(phpgwaccounttype=g))");
|
||||
$sri = ldap_search($ds, $this->user_context, "(&(uidnumber=$account_id)(phpgwaccounttype=u))");
|
||||
$allValues = ldap_get_entries($ds, $sri);
|
||||
|
||||
if ($allValues[0]['phpgwaccounttype'][0])
|
||||
@ -510,7 +510,7 @@
|
||||
}
|
||||
|
||||
$allValues = array();
|
||||
$sri = ldap_search($ds, $this->user_context, "(&(uidnumber=$account_id)(phpgwaccounttype=u))");
|
||||
$sri = ldap_search($ds, $this->group_context, "(&(gidnumber=$account_id)(phpgwaccounttype=g))");
|
||||
$allValues = ldap_get_entries($ds, $sri);
|
||||
|
||||
if ($allValues[0]['phpgwaccounttype'][0])
|
||||
|
Loading…
Reference in New Issue
Block a user