Griefer protection! When running without serverside permissions, let only
the owner edit attachments. Having everyone able to do it just isn't right.
0.6.0-stable
Melanie Thielker 2008-09-01 12:56:53 +00:00
parent f4035840d2
commit ddd68a0537
1 changed files with 14 additions and 1 deletions

View File

@ -659,7 +659,20 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
private bool CanMoveObject(LLUUID objectID, LLUUID moverID, Scene scene)
{
DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
if (m_bypassPermissions) return m_bypassPermissionsValue;
if (m_bypassPermissions)
{
SceneObjectPart part = scene.GetSceneObjectPart(objectID);
if (part.OwnerID != moverID)
{
if (part.ParentGroup != null &&
part.ParentGroup.RootPart != null)
{
if (part.ParentGroup.RootPart.IsAttachment)
return false;
}
}
return m_bypassPermissionsValue;
}
bool permission = GenericObjectPermission(moverID, objectID, true);
if (!permission)