aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-03-12 17:58:25 +0000
committerJustin Clark-Casey (justincc)2010-03-12 17:58:25 +0000
commitdb61d66e746df4b1919b031de72bee7cf3a796f3 (patch)
tree770a8101a52222f87f298de79fabbd4aad176333 /OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
parentminor: add some more documentation for IHttpServer.AddHTTPHandler() to tell t... (diff)
parentChanged some properties and methods from private to protected in LLLoginRespo... (diff)
downloadopensim-SC_OLD-db61d66e746df4b1919b031de72bee7cf3a796f3.zip
opensim-SC_OLD-db61d66e746df4b1919b031de72bee7cf3a796f3.tar.gz
opensim-SC_OLD-db61d66e746df4b1919b031de72bee7cf3a796f3.tar.bz2
opensim-SC_OLD-db61d66e746df4b1919b031de72bee7cf3a796f3.tar.xz
Merge branch 'master' of ssh://justincc@opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
index 2211f3e..5c7f3b7 100644
--- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
@@ -490,6 +490,14 @@ namespace OpenSim.Region.CoreModules.World.Permissions
490 490
491 if (m_allowGridGods) 491 if (m_allowGridGods)
492 { 492 {
493 ScenePresence sp = m_scene.GetScenePresence(user);
494 if (sp != null)
495 {
496 if (sp.UserLevel >= 200)
497 return true;
498 return false;
499 }
500
493 UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, user); 501 UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, user);
494 if (account != null) 502 if (account != null)
495 { 503 {
@@ -610,7 +618,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
610 return objectOwnerMask; 618 return objectOwnerMask;
611 619
612 // Estate users should be able to edit anything in the sim if RegionOwnerIsGod is set 620 // Estate users should be able to edit anything in the sim if RegionOwnerIsGod is set
613 if (IsEstateManager(user) && m_RegionOwnerIsGod) 621 if (m_RegionOwnerIsGod && IsEstateManager(user) && !IsAdministrator(objectOwner))
614 return objectOwnerMask; 622 return objectOwnerMask;
615 623
616 // Admin should be able to edit anything in the sim (including admin objects) 624 // Admin should be able to edit anything in the sim (including admin objects)