Make object return actually use the CanReturnObject permission, rather than

the CanDelete one.
0.6.1-post-fixes
Melanie Thielker 2008-12-11 01:03:53 +00:00
parent 7f80eff067
commit 2101680094
1 changed files with 3 additions and 9 deletions

View File

@ -1709,23 +1709,17 @@ namespace OpenSim.Region.Environment.Scenes
Permissions.CanDeleteObject(
grp.UUID,
remoteClient.AgentId);
permissionToDelete =
Permissions.CanDeleteObject(
grp.UUID,
remoteClient.AgentId);
permissionToDelete = permissionToTake;
}
else if (action == DeRezAction.Return)
{
if (remoteClient != null)
{
permissionToTake =
Permissions.CanDeleteObject(
grp.UUID,
remoteClient.AgentId);
permissionToDelete =
Permissions.CanDeleteObject(
Permissions.CanReturnObject(
grp.UUID,
remoteClient.AgentId);
permissionToDelete = permissionToTake;
if (permissionToDelete)
{
AddReturn(grp.OwnerID, grp.Name, grp.AbsolutePosition, "parcel owner return");