diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index 96e7919..f765cfe 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | |||
@@ -845,6 +845,12 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions | |||
845 | DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name); | 845 | DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name); |
846 | if (m_bypassPermissions) return m_bypassPermissionsValue; | 846 | if (m_bypassPermissions) return m_bypassPermissionsValue; |
847 | 847 | ||
848 | // If the sender is an object, check owner instead | ||
849 | // | ||
850 | SceneObjectPart part = startScene.GetSceneObjectPart(user); | ||
851 | if (part != null) | ||
852 | user = part.OwnerID; | ||
853 | |||
848 | return GenericCommunicationPermission(user, target); | 854 | return GenericCommunicationPermission(user, target); |
849 | } | 855 | } |
850 | 856 | ||