Fix a bug with DeRezObjects (check for a null remoteClient)

avinationmerge
Tom Grimshaw 2010-06-26 12:38:08 -07:00
parent acab2a159d
commit bd19cf739a
1 changed files with 9 additions and 7 deletions

View File

@ -1591,15 +1591,17 @@ namespace OpenSim.Region.Framework.Scenes
// So that we know the database is upto date, // So that we know the database is upto date,
// for when deleting the object from it // for when deleting the object from it
ForceSceneObjectBackup(grp); ForceSceneObjectBackup(grp);
if (remoteClient != null)
{
if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId))
permissionToTakeCopy = false;
if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId))
permissionToTake = false;
if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId)) if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId))
permissionToTakeCopy = false; permissionToDelete = false;
if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId))
permissionToTake = false;
if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId))
permissionToDelete = false;
}
} }
// Handle god perms // Handle god perms