Make ScopeID be wild on user queries. Just pass it as UUID.Zero
parent
a21ce9151b
commit
96f387ce49
|
@ -44,9 +44,20 @@ namespace OpenSim.Services.UserAccountService
|
||||||
public UserAccount GetUserAccount(UUID scopeID, string firstName,
|
public UserAccount GetUserAccount(UUID scopeID, string firstName,
|
||||||
string lastName)
|
string lastName)
|
||||||
{
|
{
|
||||||
UserAccountData[] d = m_Database.Get(
|
UserAccountData[] d;
|
||||||
|
|
||||||
|
if (scopeID != UUID.Zero)
|
||||||
|
{
|
||||||
|
d = m_Database.Get(
|
||||||
new string[] {"ScopeID", "FirstName", "LastName"},
|
new string[] {"ScopeID", "FirstName", "LastName"},
|
||||||
new string[] {scopeID.ToString(), firstName, lastName});
|
new string[] {scopeID.ToString(), firstName, lastName});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
d = m_Database.Get(
|
||||||
|
new string[] {"FirstName", "LastName"},
|
||||||
|
new string[] {firstName, lastName});
|
||||||
|
}
|
||||||
|
|
||||||
if (d.Length < 1)
|
if (d.Length < 1)
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue