Fix Mantis#2527. Permissions returned false for editing non-root SOPs. Now,

they will use the SOG the SOP belongs to (as it was for the root-SOP already).
0.6.1-post-fixes
Homer Horwitz 2008-12-01 22:28:17 +00:00
parent 047e54acbc
commit 4480d5527b
1 changed files with 8 additions and 0 deletions

View File

@ -698,6 +698,14 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
SceneObjectPart part = m_scene.GetSceneObjectPart(objectID); SceneObjectPart part = m_scene.GetSceneObjectPart(objectID);
// If we selected a sub-prim to edit, the objectID won't represent the object, but only a part.
// We have to check the permissions of the group, though.
if (part.ParentID != 0)
{
objectID = part.ParentUUID;
part = m_scene.GetSceneObjectPart(objectID);
}
// TODO: add group support! // TODO: add group support!
// //
if (part.OwnerID != editorID) if (part.OwnerID != editorID)