Cache UserLevel in ScenePresence on SP creation. Change IsAdministrator

to use that stored value.
This commit is contained in:
Melanie
2010-03-09 23:10:14 +00:00
parent 40873504dc
commit 689514a40a
2 changed files with 27 additions and 9 deletions

View File

@@ -490,6 +490,14 @@ namespace OpenSim.Region.CoreModules.World.Permissions
if (m_allowGridGods)
{
ScenePresence sp = m_scene.GetScenePresence(user);
if (sp != null)
{
if (sp.UserLevel >= 200)
return true;
return false;
}
UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, user);
if (account != null)
{