add RemoveUser to UserManagement

0.9.1.0-post-fixes
UbitUmarov 2018-10-20 14:04:11 +01:00
parent e7d9fe966c
commit 6d063785bd
2 changed files with 12 additions and 3 deletions

View File

@ -808,9 +808,9 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
public virtual void AddUser(UUID uuid, string first, string last, bool isNPC = false)
{
lock(m_UserCache)
lock (m_UserCache)
{
if(!m_UserCache.ContainsKey(uuid))
if (!m_UserCache.ContainsKey(uuid))
{
UserData user = new UserData();
user.Id = uuid;
@ -954,6 +954,15 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
}
}
}
public bool RemoveUser(UUID uuid)
{
lock (m_UserCache)
{
return m_UserCache.Remove(uuid);
}
}
#endregion
public virtual bool IsLocalGridUser(UUID uuid)

View File

@ -92,7 +92,7 @@ namespace OpenSim.Services.Interfaces
/// <param name="firstName"></param>
/// <param name="profileURL"></param>
void AddUser(UUID uuid, string firstName, string lastName, string homeURL);
bool RemoveUser(UUID uuid);
bool IsLocalGridUser(UUID uuid);
}
}