diff options
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index 92e040f..1fe7df7 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | |||
@@ -698,6 +698,14 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions | |||
698 | 698 | ||
699 | SceneObjectPart part = m_scene.GetSceneObjectPart(objectID); | 699 | SceneObjectPart part = m_scene.GetSceneObjectPart(objectID); |
700 | 700 | ||
701 | // If we selected a sub-prim to edit, the objectID won't represent the object, but only a part. | ||
702 | // We have to check the permissions of the group, though. | ||
703 | if (part.ParentID != 0) | ||
704 | { | ||
705 | objectID = part.ParentUUID; | ||
706 | part = m_scene.GetSceneObjectPart(objectID); | ||
707 | } | ||
708 | |||
701 | // TODO: add group support! | 709 | // TODO: add group support! |
702 | // | 710 | // |
703 | if (part.OwnerID != editorID) | 711 | if (part.OwnerID != editorID) |