diff options
author | Melanie Thielker | 2008-11-21 22:14:57 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-11-21 22:14:57 +0000 |
commit | ba723a4cf65e7a82f5072eaab51dc008f4a2bfd9 (patch) | |
tree | db636daea691f80b0d8bfd3970b8ced36ef9ced0 /OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |
parent | * Comment out unused access time method in MSSQL (diff) | |
download | opensim-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 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index c9c7bef..97846cf 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |||
@@ -113,8 +113,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
113 | ((SceneObjectGroup) ent).GetProperties(remoteClient); | 113 | ((SceneObjectGroup) ent).GetProperties(remoteClient); |
114 | ((SceneObjectGroup) ent).IsSelected = true; | 114 | ((SceneObjectGroup) ent).IsSelected = true; |
115 | // A prim is only tainted if it's allowed to be edited by the person clicking it. | 115 | // A prim is only tainted if it's allowed to be edited by the person clicking it. |
116 | if (ExternalChecks.ExternalChecksCanEditObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId) | 116 | if (Permissions.CanEditObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId) |
117 | || ExternalChecks.ExternalChecksCanMoveObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId)) | 117 | || Permissions.CanMoveObject(((SceneObjectGroup)ent).UUID, remoteClient.AgentId)) |
118 | { | 118 | { |
119 | EventManager.TriggerParcelPrimCountTainted(); | 119 | EventManager.TriggerParcelPrimCountTainted(); |
120 | } | 120 | } |
@@ -181,9 +181,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
181 | // | 181 | // |
182 | if (!isAttachment) | 182 | if (!isAttachment) |
183 | { | 183 | { |
184 | if (ExternalChecks.ExternalChecksCanEditObject( | 184 | if (Permissions.CanEditObject( |
185 | part.UUID, remoteClient.AgentId) | 185 | part.UUID, remoteClient.AgentId) |
186 | || ExternalChecks.ExternalChecksCanMoveObject( | 186 | || Permissions.CanMoveObject( |
187 | part.UUID, remoteClient.AgentId)) | 187 | part.UUID, remoteClient.AgentId)) |
188 | EventManager.TriggerParcelPrimCountTainted(); | 188 | EventManager.TriggerParcelPrimCountTainted(); |
189 | } | 189 | } |
@@ -337,7 +337,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
337 | if (part == null) | 337 | if (part == null) |
338 | return; | 338 | return; |
339 | 339 | ||
340 | if (ExternalChecks.ExternalChecksCanResetScript(itemID, remoteClient.AgentId)) | 340 | if (Permissions.CanResetScript(itemID, remoteClient.AgentId)) |
341 | { | 341 | { |
342 | EventManager.TriggerScriptReset(part.LocalId, itemID); | 342 | EventManager.TriggerScriptReset(part.LocalId, itemID); |
343 | } | 343 | } |