Mantis#2692: Thanks Diva, for a patch that fixes a bug in HyperGrid.

This commit is contained in:
Homer Horwitz
2008-11-25 19:08:52 +00:00
parent b0e55577ff
commit 4acddb6797
3 changed files with 19 additions and 7 deletions

View File

@@ -66,6 +66,20 @@ namespace OpenSim.Framework
return ret;
}
public bool IsLocalUser(UserProfileData userData)
{
if (userData != null)
{
if (userData is ForeignUserProfileData)
return IsLocalUser(((ForeignUserProfileData)userData).UserServerURI);
else
return true;
}
else
// Something fishy; ignore it
return true;
}
public static string ServerURI(string uri)
{
IPAddress ipaddr1 = null;