Fix repeated user profile info lookups. Redirect those lookups to cache.

0.6.0-stable
Melanie Thielker 2008-08-15 23:29:34 +00:00
parent 04488d9d38
commit 32f90a028f
1 changed files with 3 additions and 2 deletions

View File

@ -245,9 +245,10 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
if (m_scene.RegionInfo.EstateSettings.EstateOwner == user)
return true;
}
UserProfileData userProfile = m_scene.CommsManager.UserService.GetUserProfile(user);
if((userProfile.GodLevel) >= 200 && m_allowGridGods)
CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user);
if(profile.UserProfile.GodLevel >= 200 && m_AllowGridGods)
return true;
return false;
}