mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Cache UserLevel in ScenePresence on SP creation. Change IsAdministrator
to use that stored value.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user