aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-27 03:17:00 +0000
committerMelanie Thielker2008-11-27 03:17:00 +0000
commit6b7ba29986460a273a05f365e61cdbc0c71b237a (patch)
tree772182f2896eb2d1f2179e600be6a183654a201a /OpenSim/Region/Environment/Scenes/SceneGraph.cs
parentAdded local lookup before we ask the messaging server. (diff)
downloadopensim-SC-6b7ba29986460a273a05f365e61cdbc0c71b237a.zip
opensim-SC-6b7ba29986460a273a05f365e61cdbc0c71b237a.tar.gz
opensim-SC-6b7ba29986460a273a05f365e61cdbc0c71b237a.tar.bz2
opensim-SC-6b7ba29986460a273a05f365e61cdbc0c71b237a.tar.xz
Fix permission propagation that was broken some revision back, causing
sold/given prim to become full perm.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneGraph.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneGraph.cs b/OpenSim/Region/Environment/Scenes/SceneGraph.cs
index 0c4e899..3b6aa15 100644
--- a/OpenSim/Region/Environment/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneGraph.cs
@@ -423,10 +423,8 @@ namespace OpenSim.Region.Environment.Scenes
423 { 423 {
424 SceneObjectGroup group = (SceneObjectGroup)obj; 424 SceneObjectGroup group = (SceneObjectGroup)obj;
425 425
426 if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) 426 if (group.OwnerID != remoteClient.AgentId)
427 group.SetGroup(GroupID, remoteClient); 427 group.SetGroup(GroupID, remoteClient);
428 else
429 remoteClient.SendAgentAlertMessage("You don't have permission to set the group", false);
430 } 428 }
431 } 429 }
432 } 430 }