Prevent error message from scripted IM

Fixes Mantis #2970
0.6.2-post-fixes
Melanie Thielker 2009-01-09 15:15:41 +00:00
parent 7c7ea57c5c
commit 993b965f0a
1 changed files with 6 additions and 0 deletions

View File

@ -845,6 +845,12 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name); DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
if (m_bypassPermissions) return m_bypassPermissionsValue; if (m_bypassPermissions) return m_bypassPermissionsValue;
// If the sender is an object, check owner instead
//
SceneObjectPart part = startScene.GetSceneObjectPart(user);
if (part != null)
user = part.OwnerID;
return GenericCommunicationPermission(user, target); return GenericCommunicationPermission(user, target);
} }