Fix a nullref on autoreturn
parent
0a82d10fc4
commit
5964084d25
|
@ -1574,6 +1574,17 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// for when deleting the object from it
|
// for when deleting the object from it
|
||||||
ForceSceneObjectBackup(grp);
|
ForceSceneObjectBackup(grp);
|
||||||
|
|
||||||
|
if (remoteClient == null)
|
||||||
|
{
|
||||||
|
// Autoreturn has a null client. Nothing else does. So
|
||||||
|
// allow only returns
|
||||||
|
if (action != DeRezAction.Return)
|
||||||
|
return;
|
||||||
|
|
||||||
|
permissionToTakeCopy = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId))
|
if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId))
|
||||||
permissionToTakeCopy = false;
|
permissionToTakeCopy = false;
|
||||||
if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId))
|
if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId))
|
||||||
|
@ -1581,6 +1592,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId))
|
if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId))
|
||||||
permissionToDelete = false;
|
permissionToDelete = false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue