Patch #9145 (Mantis #1723)

Allows direct viewing of library scripts from inventory again
0.6.0-stable
Melanie Thielker 2008-07-12 13:42:32 +00:00
parent 9e667bdfe3
commit 9e20318667
1 changed files with 5 additions and 1 deletions

View File

@ -5159,7 +5159,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
InventoryItemBase assetRequestItem = userInfo.RootFolder.FindItem(itemID);
if(assetRequestItem == null)
return;
{
assetRequestItem = ((Scene)m_scene).CommsManager.UserProfileCacheService.libraryRoot.FindItem(itemID);
if(assetRequestItem == null)
return;
}
if((assetRequestItem.CurrentPermissions & ((uint)PermissionMask.Modify| (uint)PermissionMask.Copy | (uint)PermissionMask.Transfer)) != ((uint)PermissionMask.Modify| (uint)PermissionMask.Copy | (uint)PermissionMask.Transfer))
break;