diff options
author | Melanie | 2010-11-25 20:34:55 +0100 |
---|---|---|
committer | Melanie | 2010-11-25 20:34:55 +0100 |
commit | ee9aca9c5270e22407c3aa4aa96c76ca92f90bb9 (patch) | |
tree | bae269d89f90c22159946c494048293d1c6a9aa8 /OpenSim/Services/UserAccountService | |
parent | Export the module interface for restart (diff) | |
download | opensim-SC_OLD-ee9aca9c5270e22407c3aa4aa96c76ca92f90bb9.zip opensim-SC_OLD-ee9aca9c5270e22407c3aa4aa96c76ca92f90bb9.tar.gz opensim-SC_OLD-ee9aca9c5270e22407c3aa4aa96c76ca92f90bb9.tar.bz2 opensim-SC_OLD-ee9aca9c5270e22407c3aa4aa96c76ca92f90bb9.tar.xz |
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.
Diffstat (limited to 'OpenSim/Services/UserAccountService')
-rw-r--r-- | OpenSim/Services/UserAccountService/UserAccountService.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index f376cf8..de6d32c 100644 --- a/OpenSim/Services/UserAccountService/UserAccountService.cs +++ b/OpenSim/Services/UserAccountService/UserAccountService.cs | |||
@@ -282,6 +282,21 @@ namespace OpenSim.Services.UserAccountService | |||
282 | return ret; | 282 | return ret; |
283 | } | 283 | } |
284 | 284 | ||
285 | public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where) | ||
286 | { | ||
287 | UserAccountData[] d = m_Database.GetUsersWhere(scopeID, where); | ||
288 | |||
289 | if (d == null) | ||
290 | return new List<UserAccount>(); | ||
291 | |||
292 | List<UserAccount> ret = new List<UserAccount>(); | ||
293 | |||
294 | foreach (UserAccountData data in d) | ||
295 | ret.Add(MakeUserAccount(data)); | ||
296 | |||
297 | return ret; | ||
298 | } | ||
299 | |||
285 | #endregion | 300 | #endregion |
286 | 301 | ||
287 | #region Console commands | 302 | #region Console commands |