Prevent god users from being stopped logging into a region
parent
3dc877c59f
commit
13aae75ad8
|
@ -3524,6 +3524,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
private bool TestLandRestrictions(UUID agentID, out string reason, ref float posX, ref float posY)
|
private bool TestLandRestrictions(UUID agentID, out string reason, ref float posX, ref float posY)
|
||||||
{
|
{
|
||||||
reason = String.Empty;
|
reason = String.Empty;
|
||||||
|
if (Permissions.IsGod(agentID))
|
||||||
|
return true;
|
||||||
|
|
||||||
ILandObject land = LandChannel.GetLandObject(posX, posY);
|
ILandObject land = LandChannel.GetLandObject(posX, posY);
|
||||||
if (land == null)
|
if (land == null)
|
||||||
|
@ -5165,6 +5167,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
reason = "You are banned from the region";
|
reason = "You are banned from the region";
|
||||||
|
|
||||||
|
if (Permissions.IsGod(agentID))
|
||||||
|
{
|
||||||
|
reason = String.Empty;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!AuthorizeUser(agentID, out reason))
|
if (!AuthorizeUser(agentID, out reason))
|
||||||
{
|
{
|
||||||
// m_log.DebugFormat("[SCENE]: Denying access for {0}", agentID);
|
// m_log.DebugFormat("[SCENE]: Denying access for {0}", agentID);
|
||||||
|
|
Loading…
Reference in New Issue