Make object return actually use the CanReturnObject permission, rather than
the CanDelete one.0.6.1-post-fixes
parent
7f80eff067
commit
2101680094
|
@ -1709,23 +1709,17 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
Permissions.CanDeleteObject(
|
Permissions.CanDeleteObject(
|
||||||
grp.UUID,
|
grp.UUID,
|
||||||
remoteClient.AgentId);
|
remoteClient.AgentId);
|
||||||
permissionToDelete =
|
permissionToDelete = permissionToTake;
|
||||||
Permissions.CanDeleteObject(
|
|
||||||
grp.UUID,
|
|
||||||
remoteClient.AgentId);
|
|
||||||
}
|
}
|
||||||
else if (action == DeRezAction.Return)
|
else if (action == DeRezAction.Return)
|
||||||
{
|
{
|
||||||
if (remoteClient != null)
|
if (remoteClient != null)
|
||||||
{
|
{
|
||||||
permissionToTake =
|
permissionToTake =
|
||||||
Permissions.CanDeleteObject(
|
Permissions.CanReturnObject(
|
||||||
grp.UUID,
|
|
||||||
remoteClient.AgentId);
|
|
||||||
permissionToDelete =
|
|
||||||
Permissions.CanDeleteObject(
|
|
||||||
grp.UUID,
|
grp.UUID,
|
||||||
remoteClient.AgentId);
|
remoteClient.AgentId);
|
||||||
|
permissionToDelete = permissionToTake;
|
||||||
if (permissionToDelete)
|
if (permissionToDelete)
|
||||||
{
|
{
|
||||||
AddReturn(grp.OwnerID, grp.Name, grp.AbsolutePosition, "parcel owner return");
|
AddReturn(grp.OwnerID, grp.Name, grp.AbsolutePosition, "parcel owner return");
|
||||||
|
|
Loading…
Reference in New Issue