aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-09 16:16:16 +0000
committerJustin Clarke Casey2008-12-09 16:16:16 +0000
commit557567dcf8cd950afbee7d8e60e1148068031612 (patch)
treea6cf37800040c3eaeab9b0eeaf35ba9c237025d8 /OpenSim/Region/Environment
parentFrom: Christopher Yeoh <yeohc@au1.ibm.com> (diff)
downloadopensim-SC_OLD-557567dcf8cd950afbee7d8e60e1148068031612.zip
opensim-SC_OLD-557567dcf8cd950afbee7d8e60e1148068031612.tar.gz
opensim-SC_OLD-557567dcf8cd950afbee7d8e60e1148068031612.tar.bz2
opensim-SC_OLD-557567dcf8cd950afbee7d8e60e1148068031612.tar.xz
* minor: remove some old logging messages
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs4
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs6
2 files changed, 4 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs
index d486da4..7297450 100644
--- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs
@@ -1355,8 +1355,6 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
1355 /// <returns></returns> 1355 /// <returns></returns>
1356 private bool CanCreateObjectInventory(int invType, UUID objectID, UUID userID) 1356 private bool CanCreateObjectInventory(int invType, UUID objectID, UUID userID)
1357 { 1357 {
1358 m_log.Debug("[PERMISSIONS]: CanCreateObjectInventory called");
1359
1360 DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name); 1358 DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
1361 if (m_bypassPermissions) return m_bypassPermissionsValue; 1359 if (m_bypassPermissions) return m_bypassPermissionsValue;
1362 1360
@@ -1375,8 +1373,6 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
1375 /// <returns></returns> 1373 /// <returns></returns>
1376 private bool CanCreateUserInventory(int invType, UUID userID) 1374 private bool CanCreateUserInventory(int invType, UUID userID)
1377 { 1375 {
1378 m_log.Debug("[PERMISSIONS]: CanCreateAvatarInventory called");
1379
1380 DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name); 1376 DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
1381 if (m_bypassPermissions) return m_bypassPermissionsValue; 1377 if (m_bypassPermissions) return m_bypassPermissionsValue;
1382 1378
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index aa74e01..586fa43 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -169,22 +169,24 @@ namespace OpenSim.Region.Environment.Scenes
169 169
170 if (item != null) 170 if (item != null)
171 { 171 {
172 if ((InventoryType) item.InvType == InventoryType.Notecard) 172 if ((InventoryType)item.InvType == InventoryType.Notecard)
173 { 173 {
174 if (!Permissions.CanEditNotecard(itemID, UUID.Zero, remoteClient.AgentId)) 174 if (!Permissions.CanEditNotecard(itemID, UUID.Zero, remoteClient.AgentId))
175 { 175 {
176 remoteClient.SendAgentAlertMessage("Insufficient permissions to edit notecard", false); 176 remoteClient.SendAgentAlertMessage("Insufficient permissions to edit notecard", false);
177 return UUID.Zero; 177 return UUID.Zero;
178 } 178 }
179
179 remoteClient.SendAgentAlertMessage("Notecard saved", false); 180 remoteClient.SendAgentAlertMessage("Notecard saved", false);
180 } 181 }
181 else if ((InventoryType) item.InvType == InventoryType.LSL) 182 else if ((InventoryType)item.InvType == InventoryType.LSL)
182 { 183 {
183 if (!Permissions.CanEditScript(itemID, UUID.Zero, remoteClient.AgentId)) 184 if (!Permissions.CanEditScript(itemID, UUID.Zero, remoteClient.AgentId))
184 { 185 {
185 remoteClient.SendAgentAlertMessage("Insufficient permissions to edit script", false); 186 remoteClient.SendAgentAlertMessage("Insufficient permissions to edit script", false);
186 return UUID.Zero; 187 return UUID.Zero;
187 } 188 }
189
188 remoteClient.SendAgentAlertMessage("Script saved", false); 190 remoteClient.SendAgentAlertMessage("Script saved", false);
189 } 191 }
190 192