aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-21 22:14:57 +0000
committerMelanie Thielker2008-11-21 22:14:57 +0000
commitba723a4cf65e7a82f5072eaab51dc008f4a2bfd9 (patch)
treedb636daea691f80b0d8bfd3970b8ced36ef9ced0 /OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs
parent* Comment out unused access time method in MSSQL (diff)
downloadopensim-SC_OLD-ba723a4cf65e7a82f5072eaab51dc008f4a2bfd9.zip
opensim-SC_OLD-ba723a4cf65e7a82f5072eaab51dc008f4a2bfd9.tar.gz
opensim-SC_OLD-ba723a4cf65e7a82f5072eaab51dc008f4a2bfd9.tar.bz2
opensim-SC_OLD-ba723a4cf65e7a82f5072eaab51dc008f4a2bfd9.tar.xz
Refactor: Scene.ExternalChecks -> Scene.Permissions. Also make all
the internals of the permissions module adapter sane
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs
index 3170724..5646de1 100644
--- a/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Terrain/TerrainModule.cs
@@ -616,7 +616,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
616 private void client_OnModifyTerrain(UUID user, float height, float seconds, byte size, byte action, 616 private void client_OnModifyTerrain(UUID user, float height, float seconds, byte size, byte action,
617 float north, float west, float south, float east, UUID agentId) 617 float north, float west, float south, float east, UUID agentId)
618 { 618 {
619 bool god = m_scene.ExternalChecks.ExternalChecksCanBeGodLike(user); 619 bool god = m_scene.Permissions.IsGod(user);
620 bool allowed = false; 620 bool allowed = false;
621 if (north == south && east == west) 621 if (north == south && east == west)
622 { 622 {
@@ -641,7 +641,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
641 int y = zy + dy; 641 int y = zy + dy;
642 if (x>=0 && y>=0 && x<m_channel.Width && y<m_channel.Height) 642 if (x>=0 && y>=0 && x<m_channel.Width && y<m_channel.Height)
643 { 643 {
644 if (m_scene.ExternalChecks.ExternalChecksCanTerraformLand(agentId, new Vector3(x,y,0))) 644 if (m_scene.Permissions.CanTerraformLand(agentId, new Vector3(x,y,0)))
645 { 645 {
646 allowMask[x, y] = true; 646 allowMask[x, y] = true;
647 allowed = true; 647 allowed = true;
@@ -679,7 +679,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
679 { 679 {
680 if (y < north && y > south) 680 if (y < north && y > south)
681 { 681 {
682 if (m_scene.ExternalChecks.ExternalChecksCanTerraformLand(agentId, new Vector3(x,y,0))) 682 if (m_scene.Permissions.CanTerraformLand(agentId, new Vector3(x,y,0)))
683 { 683 {
684 fillArea[x, y] = true; 684 fillArea[x, y] = true;
685 allowed = true; 685 allowed = true;
@@ -709,7 +709,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
709 // Not a good permissions check (see client_OnModifyTerrain above), need to check the entire area. 709 // Not a good permissions check (see client_OnModifyTerrain above), need to check the entire area.
710 // for now check a point in the centre of the region 710 // for now check a point in the centre of the region
711 711
712 if (m_scene.ExternalChecks.ExternalChecksCanIssueEstateCommand(remoteClient.AgentId, true)) 712 if (m_scene.Permissions.CanIssueEstateCommand(remoteClient.AgentId, true))
713 { 713 {
714 InterfaceBakeTerrain(null); //bake terrain does not use the passed in parameter 714 InterfaceBakeTerrain(null); //bake terrain does not use the passed in parameter
715 } 715 }