mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
== UUID.Zero is slow
This commit is contained in:
@@ -383,7 +383,7 @@ namespace OpenSim.Groups
|
||||
}
|
||||
|
||||
// Can't delete Everyone and Owners roles
|
||||
if (roleID == UUID.Zero)
|
||||
if (roleID.IsZero())
|
||||
{
|
||||
m_log.DebugFormat("[Groups]: Attempt at deleting Everyone role from group {0} denied", groupID);
|
||||
return;
|
||||
@@ -527,7 +527,7 @@ namespace OpenSim.Groups
|
||||
public bool RemoveAgentFromGroupRole(string RequestingAgentID, string AgentID, UUID GroupID, UUID RoleID)
|
||||
{
|
||||
// Don't remove from Everyone role!
|
||||
if (RoleID == UUID.Zero)
|
||||
if (RoleID.IsZero())
|
||||
return false;
|
||||
|
||||
// check permissions
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace OpenSim.Groups
|
||||
return null;
|
||||
|
||||
ExtendedGroupRecord grec;
|
||||
if (GroupID == UUID.Zero)
|
||||
if (GroupID.IsZero())
|
||||
grec = GetGroupRecord(RequestingAgentID, groupName);
|
||||
else
|
||||
grec = GetGroupRecord(RequestingAgentID, GroupID);
|
||||
|
||||
Reference in New Issue
Block a user