Fix a bug with DeRezObjects (check for a null remoteClient)
parent
acab2a159d
commit
bd19cf739a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue