Merge branch 'master' into 0.7-post-fixes
commit
bfff39c4c0
|
@ -131,7 +131,8 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override UUID DeleteToInventory(DeRezAction action, UUID folderID,
|
// DO NOT OVERRIDE THIS METHOD
|
||||||
|
public virtual UUID DeleteToInventory(DeRezAction action, UUID folderID,
|
||||||
SceneObjectGroup objectGroup, IClientAPI remoteClient)
|
SceneObjectGroup objectGroup, IClientAPI remoteClient)
|
||||||
{
|
{
|
||||||
UUID assetID = base.DeleteToInventory(action, folderID, new List<SceneObjectGroup>() {objectGroup}, remoteClient);
|
UUID assetID = base.DeleteToInventory(action, folderID, new List<SceneObjectGroup>() {objectGroup}, remoteClient);
|
||||||
|
|
|
@ -1574,13 +1574,25 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// for when deleting the object from it
|
// for when deleting the object from it
|
||||||
ForceSceneObjectBackup(grp);
|
ForceSceneObjectBackup(grp);
|
||||||
|
|
||||||
if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId))
|
if (remoteClient == null)
|
||||||
permissionToTakeCopy = false;
|
{
|
||||||
if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId))
|
// Autoreturn has a null client. Nothing else does. So
|
||||||
permissionToTake = false;
|
// allow only returns
|
||||||
|
if (action != DeRezAction.Return)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId))
|
permissionToTakeCopy = false;
|
||||||
permissionToDelete = false;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId))
|
||||||
|
permissionToTakeCopy = false;
|
||||||
|
if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId))
|
||||||
|
permissionToTake = false;
|
||||||
|
|
||||||
|
if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId))
|
||||||
|
permissionToDelete = false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue