Fix repeated user profile info lookups. Redirect those lookups to cache.
parent
04488d9d38
commit
32f90a028f
|
@ -245,9 +245,10 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
||||||
if (m_scene.RegionInfo.EstateSettings.EstateOwner == user)
|
if (m_scene.RegionInfo.EstateSettings.EstateOwner == user)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
UserProfileData userProfile = m_scene.CommsManager.UserService.GetUserProfile(user);
|
CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(user);
|
||||||
if((userProfile.GodLevel) >= 200 && m_allowGridGods)
|
if(profile.UserProfile.GodLevel >= 200 && m_AllowGridGods)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue