Remove the redundant BypassPermissions() checks in EstateManagmentModule.
This is repeated in the PermissionsModule and checking it earlier does not allow a force override of the bypass value0.7.4-extended
parent
c35f974637
commit
e9fbfd0905
|
@ -298,7 +298,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
|
|
||||||
if ((estateAccessType & 4) != 0) // User add
|
if ((estateAccessType & 4) != 0) // User add
|
||||||
{
|
{
|
||||||
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true) || Scene.Permissions.BypassPermissions())
|
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true))
|
||||||
{
|
{
|
||||||
if ((estateAccessType & 1) != 0) // All estates
|
if ((estateAccessType & 1) != 0) // All estates
|
||||||
{
|
{
|
||||||
|
@ -330,7 +330,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
}
|
}
|
||||||
if ((estateAccessType & 8) != 0) // User remove
|
if ((estateAccessType & 8) != 0) // User remove
|
||||||
{
|
{
|
||||||
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true) || Scene.Permissions.BypassPermissions())
|
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true))
|
||||||
{
|
{
|
||||||
if ((estateAccessType & 1) != 0) // All estates
|
if ((estateAccessType & 1) != 0) // All estates
|
||||||
{
|
{
|
||||||
|
@ -361,7 +361,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
}
|
}
|
||||||
if ((estateAccessType & 16) != 0) // Group add
|
if ((estateAccessType & 16) != 0) // Group add
|
||||||
{
|
{
|
||||||
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true) || Scene.Permissions.BypassPermissions())
|
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true))
|
||||||
{
|
{
|
||||||
if ((estateAccessType & 1) != 0) // All estates
|
if ((estateAccessType & 1) != 0) // All estates
|
||||||
{
|
{
|
||||||
|
@ -390,9 +390,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
remote_client.SendAlertMessage("Method EstateAccessDelta Failed, you don't have permissions");
|
remote_client.SendAlertMessage("Method EstateAccessDelta Failed, you don't have permissions");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((estateAccessType & 32) != 0) // Group remove
|
if ((estateAccessType & 32) != 0) // Group remove
|
||||||
{
|
{
|
||||||
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true) || Scene.Permissions.BypassPermissions())
|
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true))
|
||||||
{
|
{
|
||||||
if ((estateAccessType & 1) != 0) // All estates
|
if ((estateAccessType & 1) != 0) // All estates
|
||||||
{
|
{
|
||||||
|
@ -421,9 +422,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
remote_client.SendAlertMessage("Method EstateAccessDelta Failed, you don't have permissions");
|
remote_client.SendAlertMessage("Method EstateAccessDelta Failed, you don't have permissions");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((estateAccessType & 64) != 0) // Ban add
|
if ((estateAccessType & 64) != 0) // Ban add
|
||||||
{
|
{
|
||||||
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, false) || Scene.Permissions.BypassPermissions())
|
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, false))
|
||||||
{
|
{
|
||||||
EstateBan[] banlistcheck = Scene.RegionInfo.EstateSettings.EstateBans;
|
EstateBan[] banlistcheck = Scene.RegionInfo.EstateSettings.EstateBans;
|
||||||
|
|
||||||
|
@ -498,9 +500,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
remote_client.SendAlertMessage("Method EstateAccessDelta Failed, you don't have permissions");
|
remote_client.SendAlertMessage("Method EstateAccessDelta Failed, you don't have permissions");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((estateAccessType & 128) != 0) // Ban remove
|
if ((estateAccessType & 128) != 0) // Ban remove
|
||||||
{
|
{
|
||||||
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, false) || Scene.Permissions.BypassPermissions())
|
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, false))
|
||||||
{
|
{
|
||||||
EstateBan[] banlistcheck = Scene.RegionInfo.EstateSettings.EstateBans;
|
EstateBan[] banlistcheck = Scene.RegionInfo.EstateSettings.EstateBans;
|
||||||
|
|
||||||
|
@ -553,9 +556,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
remote_client.SendAlertMessage("Method EstateAccessDelta Failed, you don't have permissions");
|
remote_client.SendAlertMessage("Method EstateAccessDelta Failed, you don't have permissions");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((estateAccessType & 256) != 0) // Manager add
|
if ((estateAccessType & 256) != 0) // Manager add
|
||||||
{
|
{
|
||||||
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true) || Scene.Permissions.BypassPermissions())
|
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true))
|
||||||
{
|
{
|
||||||
if ((estateAccessType & 1) != 0) // All estates
|
if ((estateAccessType & 1) != 0) // All estates
|
||||||
{
|
{
|
||||||
|
@ -584,9 +588,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||||
remote_client.SendAlertMessage("Method EstateAccessDelta Failed, you don't have permissions");
|
remote_client.SendAlertMessage("Method EstateAccessDelta Failed, you don't have permissions");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((estateAccessType & 512) != 0) // Manager remove
|
if ((estateAccessType & 512) != 0) // Manager remove
|
||||||
{
|
{
|
||||||
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true) || Scene.Permissions.BypassPermissions())
|
if (Scene.Permissions.CanIssueEstateCommand(remote_client.AgentId, true))
|
||||||
{
|
{
|
||||||
if ((estateAccessType & 1) != 0) // All estates
|
if ((estateAccessType & 1) != 0) // All estates
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue