Let HG users be gods too, if they have local permission to be so.

bullet-2.82
Diva Canto 2014-06-09 21:46:24 -07:00
parent c915791824
commit e86c765be3
1 changed files with 4 additions and 7 deletions

View File

@ -3772,13 +3772,10 @@ namespace OpenSim.Region.Framework.Scenes
// who is granted god powers, but has no god level set.
//
UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, agentID);
if (account != null)
{
if (account.UserLevel > 0)
GodLevel = account.UserLevel;
else
GodLevel = 200;
}
if (account != null && account.UserLevel > 0)
GodLevel = account.UserLevel;
else
GodLevel = 200; // local or HG
}
else
{