diff options
author | Melanie Thielker | 2017-01-06 00:55:14 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-06 00:55:14 +0000 |
commit | ad8915f154d2ce6ba1b3a021b1725a0b0a671635 (patch) | |
tree | 431a20d28837bc3b002dcb65b60450729eb5ed8a /OpenSim/Region/CoreModules/World/Permissions | |
parent | Add GodController class (diff) | |
download | opensim-SC-ad8915f154d2ce6ba1b3a021b1725a0b0a671635.zip opensim-SC-ad8915f154d2ce6ba1b3a021b1725a0b0a671635.tar.gz opensim-SC-ad8915f154d2ce6ba1b3a021b1725a0b0a671635.tar.bz2 opensim-SC-ad8915f154d2ce6ba1b3a021b1725a0b0a671635.tar.xz |
Restructure god level and permissions
Create a class GodController which controls all aspects of god level,
viewer modes and user levels at ScenePresence level.
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Permissions')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs index 1a61771..02d0e02 100644 --- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | |||
@@ -547,7 +547,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions | |||
547 | { | 547 | { |
548 | ScenePresence sp = m_scene.GetScenePresence(user); | 548 | ScenePresence sp = m_scene.GetScenePresence(user); |
549 | if (sp != null) | 549 | if (sp != null) |
550 | return (sp.UserLevel >= 200); | 550 | return (sp.GodController.UserLevel >= 200); |
551 | 551 | ||
552 | UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, user); | 552 | UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, user); |
553 | if (account != null) | 553 | if (account != null) |