mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
mantis 9039: do not lose runtime permitions on llAttachToAvatarTemp
This commit is contained in:
@@ -3836,6 +3836,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if ((effectivePerms & (uint)PermissionMask.Transfer) == 0)
|
||||
return;
|
||||
|
||||
UUID permsgranter = m_item.PermsGranter;
|
||||
int permsmask = m_item.PermsMask;
|
||||
grp.SetOwner(target.UUID, target.ControllingClient.ActiveGroupId);
|
||||
|
||||
if (World.Permissions.PropagatePermissions())
|
||||
@@ -3849,6 +3851,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
grp.InvalidateEffectivePerms();
|
||||
}
|
||||
|
||||
m_item.PermsMask = permsmask;
|
||||
m_item.PermsGranter = permsgranter;
|
||||
|
||||
grp.RootPart.ObjectSaleType = 0;
|
||||
grp.RootPart.SalePrice = 10;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user