mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Revert "Let HG users be gods too, if they have local permission to be so."
HG gods are not safe at this point. It's better to disallow this until
they can be made safe.
This reverts commit e86c765be3.
This commit is contained in:
@@ -3772,10 +3772,13 @@ 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 && account.UserLevel > 0)
|
||||
GodLevel = account.UserLevel;
|
||||
else
|
||||
GodLevel = 200; // local or HG
|
||||
if (account != null)
|
||||
{
|
||||
if (account.UserLevel > 0)
|
||||
GodLevel = account.UserLevel;
|
||||
else
|
||||
GodLevel = 200;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user