mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
move servicesGodAgentID to Constants.cs
This commit is contained in:
@@ -652,14 +652,12 @@ namespace OpenSim.Services.HypergridService
|
||||
return false;
|
||||
|
||||
string regURL = regInfo.ServerURI;
|
||||
if(String.IsNullOrEmpty(regURL))
|
||||
if(string.IsNullOrEmpty(regURL))
|
||||
return false;
|
||||
|
||||
UUID guuid = new UUID("6571e388-6218-4574-87db-f9379718315e");
|
||||
|
||||
GridInstantMessage msg = new GridInstantMessage();
|
||||
msg.imSessionID = UUID.Zero.Guid;
|
||||
msg.fromAgentID = guuid.Guid;
|
||||
msg.fromAgentID = Constants.servicesGodAgentID.Guid;
|
||||
msg.toAgentID = agentID.Guid;
|
||||
msg.timestamp = (uint)Util.UnixTimeSinceEpoch();
|
||||
msg.fromAgentName = "GRID";
|
||||
|
||||
@@ -855,7 +855,7 @@ namespace OpenSim.Services.LLLoginService
|
||||
{
|
||||
//for now create random inventory library owner
|
||||
Hashtable TempHash = new Hashtable();
|
||||
TempHash["agent_id"] = "11111111-1111-0000-0000-000100bba000"; // libFolder.Owner
|
||||
TempHash["agent_id"] = Constants.m_MrOpenSimID.ToString(); // libFolder.Owner
|
||||
ArrayList inventoryLibOwner = new ArrayList();
|
||||
inventoryLibOwner.Add(TempHash);
|
||||
return inventoryLibOwner;
|
||||
|
||||
@@ -365,6 +365,12 @@ namespace OpenSim.Services.LLLoginService
|
||||
return LLFailedLoginResponse.LoginBlockedProblem;
|
||||
}
|
||||
|
||||
if (account.PrincipalID == Constants.servicesGodAgentID)
|
||||
{
|
||||
// really?
|
||||
return LLFailedLoginResponse.UserProblem;
|
||||
}
|
||||
|
||||
// If a scope id is requested, check that the account is in
|
||||
// that scope, or unscoped.
|
||||
//
|
||||
@@ -399,11 +405,7 @@ namespace OpenSim.Services.LLLoginService
|
||||
return LLFailedLoginResponse.UserProblem;
|
||||
}
|
||||
|
||||
if(account.PrincipalID == new UUID("6571e388-6218-4574-87db-f9379718315e"))
|
||||
{
|
||||
// really?
|
||||
return LLFailedLoginResponse.UserProblem;
|
||||
}
|
||||
|
||||
|
||||
string PrincipalIDstr = account.PrincipalID.ToString();
|
||||
GridUserInfo guinfo = m_GridUserService.GetGridUserInfo(PrincipalIDstr);
|
||||
@@ -1143,14 +1145,13 @@ namespace OpenSim.Services.LLLoginService
|
||||
return false;
|
||||
|
||||
string regURL = regInfo.ServerURI;
|
||||
if(String.IsNullOrEmpty(regURL))
|
||||
if(string.IsNullOrEmpty(regURL))
|
||||
return false;
|
||||
|
||||
UUID guuid = new UUID("6571e388-6218-4574-87db-f9379718315e");
|
||||
|
||||
|
||||
GridInstantMessage msg = new GridInstantMessage();
|
||||
msg.imSessionID = UUID.Zero.Guid;
|
||||
msg.fromAgentID = guuid.Guid;
|
||||
msg.fromAgentID = Constants.servicesGodAgentID.Guid;
|
||||
msg.toAgentID = agentID.Guid;
|
||||
msg.timestamp = (uint)Util.UnixTimeSinceEpoch();
|
||||
msg.fromAgentName = "GRID";
|
||||
|
||||
@@ -44,7 +44,6 @@ namespace OpenSim.Services.UserAccountService
|
||||
public class UserAccountService : UserAccountServiceBase, IUserAccountService
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
private static readonly UUID UUID_GRID_GOD = new UUID("6571e388-6218-4574-87db-f9379718315e");
|
||||
private static UserAccountService m_RootInstance;
|
||||
|
||||
/// <summary>
|
||||
@@ -92,13 +91,13 @@ namespace OpenSim.Services.UserAccountService
|
||||
m_RootInstance = this;
|
||||
|
||||
// create a system grid god account
|
||||
UserAccount ggod = GetUserAccount(UUID.Zero, UUID_GRID_GOD);
|
||||
UserAccount ggod = GetUserAccount(UUID.Zero, Constants.servicesGodAgentID);
|
||||
if(ggod == null)
|
||||
{
|
||||
UserAccountData d = new UserAccountData();
|
||||
d.FirstName = "GRID";
|
||||
d.LastName = "SERVICES";
|
||||
d.PrincipalID = UUID_GRID_GOD;
|
||||
d.PrincipalID = Constants.servicesGodAgentID;
|
||||
d.ScopeID = UUID.Zero;
|
||||
d.Data = new Dictionary<string, string>();
|
||||
d.Data["Email"] = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user