diff options
author | Melanie | 2010-03-18 20:09:04 +0000 |
---|---|---|
committer | Melanie | 2010-03-18 20:09:04 +0000 |
commit | 4c2a51b1b5e2169e0f336c56a023c35bcc334cbd (patch) | |
tree | 9fbaf708764f315034a283fd8fedc8afe0864d75 /OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs | |
parent | Merge branch 'careminster' into careminster-presence-refactor (diff) | |
parent | Flesh out the new permission method (diff) | |
download | opensim-SC-4c2a51b1b5e2169e0f336c56a023c35bcc334cbd.zip opensim-SC-4c2a51b1b5e2169e0f336c56a023c35bcc334cbd.tar.gz opensim-SC-4c2a51b1b5e2169e0f336c56a023c35bcc334cbd.tar.bz2 opensim-SC-4c2a51b1b5e2169e0f336c56a023c35bcc334cbd.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs b/OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs index c3de98e..7d97aaa 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianGrid.cs | |||
@@ -34,12 +34,12 @@ using Nini.Config; | |||
34 | 34 | ||
35 | public static class Simian | 35 | public static class Simian |
36 | { | 36 | { |
37 | public static bool IsSimianEnabled(IConfigSource config, string moduleName) | 37 | public static bool IsSimianEnabled(IConfigSource config, string moduleName, string connectorName) |
38 | { | 38 | { |
39 | if (config.Configs["Modules"] != null) | 39 | if (config.Configs["Modules"] != null) |
40 | { | 40 | { |
41 | string module = config.Configs["Modules"].GetString("AuthenticationServices"); | 41 | string module = config.Configs["Modules"].GetString(moduleName); |
42 | return !String.IsNullOrEmpty(module) && module.Contains("Simian"); | 42 | return !String.IsNullOrEmpty(module) && module.EndsWith(connectorName); |
43 | } | 43 | } |
44 | 44 | ||
45 | return false; | 45 | return false; |