Reshuffle to eliminate prim owner lookups unless gridgods are enabled

0.6.0-stable
Melanie Thielker 2008-08-16 05:41:40 +00:00
parent e5a7ba5df4
commit 682ffef101
1 changed files with 7 additions and 4 deletions

View File

@ -246,12 +246,15 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
if (m_scene.RegionInfo.EstateSettings.EstateOwner == user)
return true;
}
if(m_allowGridGods)
{
CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user);
if(profile != null && profile.UserProfile != null)
{
if(profile.UserProfile.GodLevel >= 200 && m_allowGridGods)
if(profile.UserProfile.GodLevel >= 200)
return true;
}
}
return false;
}