mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user