mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
Prevent god users from being stopped logging into a region
This commit is contained in:
@@ -3524,6 +3524,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
private bool TestLandRestrictions(UUID agentID, out string reason, ref float posX, ref float posY)
|
||||
{
|
||||
reason = String.Empty;
|
||||
if (Permissions.IsGod(agentID))
|
||||
return true;
|
||||
|
||||
ILandObject land = LandChannel.GetLandObject(posX, posY);
|
||||
if (land == null)
|
||||
@@ -5165,6 +5167,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
reason = "You are banned from the region";
|
||||
|
||||
if (Permissions.IsGod(agentID))
|
||||
{
|
||||
reason = String.Empty;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!AuthorizeUser(agentID, out reason))
|
||||
{
|
||||
// m_log.DebugFormat("[SCENE]: Denying access for {0}", agentID);
|
||||
|
||||
Reference in New Issue
Block a user