Add the ability for gods to impersonate users. For this, bit 6 needs to be

set in the target's UserFlags and the impersonator must have UserLevel 200
or above. The user can then log in using the target's name and their own
password.
This commit is contained in:
Melanie
2010-11-25 20:34:55 +01:00
parent c14592d4ba
commit ee9aca9c52
16 changed files with 138 additions and 8 deletions

View File

@@ -282,6 +282,21 @@ namespace OpenSim.Services.UserAccountService
return ret;
}
public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where)
{
UserAccountData[] d = m_Database.GetUsersWhere(scopeID, where);
if (d == null)
return new List<UserAccount>();
List<UserAccount> ret = new List<UserAccount>();
foreach (UserAccountData data in d)
ret.Add(MakeUserAccount(data));
return ret;
}
#endregion
#region Console commands