mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Mostly revert the last commit with the aim of searching for a better solution
This commit is contained in:
@@ -142,19 +142,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID userID)
|
||||
{
|
||||
return GetUserAccount(scopeID, userID, true);
|
||||
}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID userID, bool useCache)
|
||||
{
|
||||
UserAccount account;
|
||||
if (useCache)
|
||||
{
|
||||
bool inCache = false;
|
||||
account = m_Cache.Get(userID, out inCache);
|
||||
if (inCache)
|
||||
return account;
|
||||
}
|
||||
bool inCache = false;
|
||||
UserAccount account = m_Cache.Get(userID, out inCache);
|
||||
if (inCache)
|
||||
return account;
|
||||
|
||||
account = m_UserService.GetUserAccount(scopeID, userID);
|
||||
m_Cache.Cache(userID, account);
|
||||
|
||||
@@ -2559,7 +2559,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
else
|
||||
{
|
||||
*/
|
||||
UserAccount uac = UserAccountService.GetUserAccount(RegionInfo.ScopeID, user, false);
|
||||
UserAccount uac = UserAccountService.GetUserAccount(RegionInfo.ScopeID, user);
|
||||
return uac.UserFlags;
|
||||
//}
|
||||
}
|
||||
|
||||
@@ -130,11 +130,6 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||
}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID userID)
|
||||
{
|
||||
return GetUserAccount(scopeID, userID, true);
|
||||
}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID userID, bool useCache)
|
||||
{
|
||||
// Cache check
|
||||
UserAccount account;
|
||||
|
||||
@@ -112,11 +112,6 @@ namespace OpenSim.Services.Connectors
|
||||
}
|
||||
|
||||
public virtual UserAccount GetUserAccount(UUID scopeID, UUID userID)
|
||||
{
|
||||
return GetUserAccount(scopeID, userID, true);
|
||||
}
|
||||
|
||||
public virtual UserAccount GetUserAccount(UUID scopeID, UUID userID, bool useCache)
|
||||
{
|
||||
//m_log.DebugFormat("[ACCOUNTS CONNECTOR]: GetUserAccount {0}", userID);
|
||||
Dictionary<string, object> sendData = new Dictionary<string, object>();
|
||||
|
||||
@@ -80,11 +80,6 @@ namespace OpenSim.Services.HypergridService
|
||||
return GetUser(userID.ToString());
|
||||
}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID userID, bool useCache)
|
||||
{
|
||||
return GetUser(userID.ToString());
|
||||
}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, string FirstName, string LastName)
|
||||
{
|
||||
return null;
|
||||
|
||||
@@ -143,7 +143,6 @@ namespace OpenSim.Services.Interfaces
|
||||
|
||||
public interface IUserAccountService
|
||||
{
|
||||
UserAccount GetUserAccount(UUID scopeID, UUID userID, bool useCache);
|
||||
UserAccount GetUserAccount(UUID scopeID, UUID userID);
|
||||
UserAccount GetUserAccount(UUID scopeID, string FirstName, string LastName);
|
||||
UserAccount GetUserAccount(UUID scopeID, string Email);
|
||||
|
||||
@@ -207,11 +207,6 @@ namespace OpenSim.Services.UserAccountService
|
||||
}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID principalID)
|
||||
{
|
||||
return GetUserAccount(scopeID, principalID, true);
|
||||
}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID principalID, bool useCache)
|
||||
{
|
||||
UserAccountData[] d;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user