Merge commit 'c14c4bc1ec5f381aa754068caf460c95e4539b17' into bigmerge
commit
ed1bb2081e
|
@ -141,11 +141,21 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Authorization
|
||||||
|
|
||||||
if (scene != null)
|
if (scene != null)
|
||||||
{
|
{
|
||||||
|
string mail = String.Empty;
|
||||||
|
|
||||||
UserAccount account = scene.UserAccountService.GetUserAccount(UUID.Zero, new UUID(userID));
|
UserAccount account = scene.UserAccountService.GetUserAccount(UUID.Zero, new UUID(userID));
|
||||||
|
|
||||||
|
//if account not found, we assume its a foreign visitor from HG, else use account data...
|
||||||
|
if (account != null)
|
||||||
|
{
|
||||||
|
mail = account.Email;
|
||||||
|
firstName = account.FirstName;
|
||||||
|
lastName = account.LastName;
|
||||||
|
}
|
||||||
|
|
||||||
isAuthorized
|
isAuthorized
|
||||||
= IsAuthorizedForRegion(
|
= IsAuthorizedForRegion(
|
||||||
userID, firstName, lastName, account.Email, scene.RegionInfo.RegionName, regionID, out message);
|
userID, firstName, lastName, mail, scene.RegionInfo.RegionName, regionID, out message);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue