aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorDiva Canto2015-09-06 10:00:20 -0700
committerDiva Canto2015-09-06 10:00:20 -0700
commit82ea4179da7ea32ea2efbd1cb209c77d5871b3fd (patch)
tree8365dadb8e02955f378e0baadad125a49118f0a7 /OpenSim/Region
parentRelated to previous commits: fixed namespace. (diff)
downloadopensim-SC-82ea4179da7ea32ea2efbd1cb209c77d5871b3fd.zip
opensim-SC-82ea4179da7ea32ea2efbd1cb209c77d5871b3fd.tar.gz
opensim-SC-82ea4179da7ea32ea2efbd1cb209c77d5871b3fd.tar.bz2
opensim-SC-82ea4179da7ea32ea2efbd1cb209c77d5871b3fd.tar.xz
Clean up viewer-based access control specifications.
Diffstat (limited to 'OpenSim/Region')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 8c2f45e..dce2247 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1051,11 +1051,11 @@ namespace OpenSim.Region.Framework.Scenes
1051 } 1051 }
1052 } 1052 }
1053 1053
1054 string[] possibleAccessControlConfigSections = new string[] { "AccessControl", "Startup" }; 1054 string[] possibleAccessControlConfigSections = new string[] { "Startup", "AccessControl"};
1055 1055
1056 string grant 1056 string grant
1057 = Util.GetConfigVarFromSections<string>( 1057 = Util.GetConfigVarFromSections<string>(
1058 config, "AllowedClients", possibleAccessControlConfigSections, ""); 1058 config, "AllowedClients", possibleAccessControlConfigSections, string.Empty);
1059 1059
1060 if (grant.Length > 0) 1060 if (grant.Length > 0)
1061 { 1061 {
@@ -1067,7 +1067,11 @@ namespace OpenSim.Region.Framework.Scenes
1067 1067
1068 grant 1068 grant
1069 = Util.GetConfigVarFromSections<string>( 1069 = Util.GetConfigVarFromSections<string>(
1070 config, "BannedClients", possibleAccessControlConfigSections, ""); 1070 config, "DeniedClients", possibleAccessControlConfigSections, String.Empty);
1071 // Deal with the mess of someone having used a different word at some point
1072 if (grant == String.Empty)
1073 grant = Util.GetConfigVarFromSections<string>(
1074 config, "BannedClients", possibleAccessControlConfigSections, String.Empty);
1071 1075
1072 if (grant.Length > 0) 1076 if (grant.Length > 0)
1073 { 1077 {