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
parent
047e54acbc
commit
4480d5527b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue