add RemoveUser to UserManagement
parent
e7d9fe966c
commit
6d063785bd
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue