diff options
author | Melanie | 2011-10-11 22:54:03 +0100 |
---|---|---|
committer | Melanie | 2011-10-11 22:54:03 +0100 |
commit | ed1bb2081e7ccb6c8d997271c49f8fc6045c2a4c (patch) | |
tree | c8b1a398c15fb0123bfccaefc1287d95d463ccfa /OpenSim/Region | |
parent | Merge commit '839c1cdcc4e9ce410636becb5b81190463dec5bf' into bigmerge (diff) | |
parent | Don't try and resolve user account for authorization if the agent has come in... (diff) | |
download | opensim-SC-ed1bb2081e7ccb6c8d997271c49f8fc6045c2a4c.zip opensim-SC-ed1bb2081e7ccb6c8d997271c49f8fc6045c2a4c.tar.gz opensim-SC-ed1bb2081e7ccb6c8d997271c49f8fc6045c2a4c.tar.bz2 opensim-SC-ed1bb2081e7ccb6c8d997271c49f8fc6045c2a4c.tar.xz |
Merge commit 'c14c4bc1ec5f381aa754068caf460c95e4539b17' into bigmerge
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Authorization/RemoteAuthorizationServiceConnector.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Authorization/RemoteAuthorizationServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Authorization/RemoteAuthorizationServiceConnector.cs index 003324f..86c0099 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Authorization/RemoteAuthorizationServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Authorization/RemoteAuthorizationServiceConnector.cs | |||
@@ -141,11 +141,21 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Authorization | |||
141 | 141 | ||
142 | if (scene != null) | 142 | if (scene != null) |
143 | { | 143 | { |
144 | string mail = String.Empty; | ||
145 | |||
144 | UserAccount account = scene.UserAccountService.GetUserAccount(UUID.Zero, new UUID(userID)); | 146 | UserAccount account = scene.UserAccountService.GetUserAccount(UUID.Zero, new UUID(userID)); |
145 | 147 | ||
148 | //if account not found, we assume its a foreign visitor from HG, else use account data... | ||
149 | if (account != null) | ||
150 | { | ||
151 | mail = account.Email; | ||
152 | firstName = account.FirstName; | ||
153 | lastName = account.LastName; | ||
154 | } | ||
155 | |||
146 | isAuthorized | 156 | isAuthorized |
147 | = IsAuthorizedForRegion( | 157 | = IsAuthorizedForRegion( |
148 | userID, firstName, lastName, account.Email, scene.RegionInfo.RegionName, regionID, out message); | 158 | userID, firstName, lastName, mail, scene.RegionInfo.RegionName, regionID, out message); |
149 | } | 159 | } |
150 | else | 160 | else |
151 | { | 161 | { |