Allow renaming of items that contain no-mod items

avinationmerge
Melanie 2010-01-15 20:19:06 +00:00
parent a87d7a1296
commit 884410501e
1 changed files with 7 additions and 2 deletions

View File

@ -1803,8 +1803,13 @@ namespace OpenSim.Region.Framework.Scenes
}
else
{
item.BasePermissions = objectGroup.GetEffectivePermissions();
item.CurrentPermissions = objectGroup.GetEffectivePermissions();
uint ownerPerms = objectGroup.GetEffectivePermissions();
if ((objectGroup.RootPart.OwnerMask & (uint)PermissionMask.Modify) != 0)
ownerPerms |= (uint)PermissionMask.Modify;
item.BasePermissions = ownerPerms;
item.CurrentPermissions = ownerPerms;
item.NextPermissions = objectGroup.RootPart.NextOwnerMask;
item.EveryOnePermissions = objectGroup.RootPart.EveryoneMask;
item.GroupPermissions = objectGroup.RootPart.GroupMask;