mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* Applied a patch that: Added estate ban table to migration scripts and nhibernate mapping. Refactored property getters and setters for estate ban object to support NHibernate.
* Added estate ban table to migration scripts of all supported databases. * Added nhibernate mapping for EstateBans property of EstateSettings * Refactored property accessors for EstateBan object. * Added comments for EstateBan properties. * Ensured that NHibernate tests pass with NUnitGUI. * Ensured that nant test target passes. This fixes mantis #3210. Thank you, tlaukkan!
This commit is contained in:
@@ -333,7 +333,7 @@ namespace OpenSim.Framework
|
||||
public bool IsBanned(UUID avatarID)
|
||||
{
|
||||
foreach (EstateBan ban in l_EstateBans)
|
||||
if (ban.bannedUUID == avatarID)
|
||||
if (ban.BannedUserID == avatarID)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
@@ -342,7 +342,7 @@ namespace OpenSim.Framework
|
||||
{
|
||||
if (ban == null)
|
||||
return;
|
||||
if (!IsBanned(ban.bannedUUID))
|
||||
if (!IsBanned(ban.BannedUserID))
|
||||
l_EstateBans.Add(ban);
|
||||
}
|
||||
|
||||
@@ -354,7 +354,7 @@ namespace OpenSim.Framework
|
||||
public void RemoveBan(UUID avatarID)
|
||||
{
|
||||
foreach (EstateBan ban in new List<EstateBan>(l_EstateBans))
|
||||
if (ban.bannedUUID == avatarID)
|
||||
if (ban.BannedUserID == avatarID)
|
||||
l_EstateBans.Remove(ban);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user