Groups: make some methods protected.
parent
3bc8017464
commit
0e162511cf
|
@ -723,12 +723,12 @@ namespace OpenSim.Groups
|
||||||
|
|
||||||
#region Actions without permission checks
|
#region Actions without permission checks
|
||||||
|
|
||||||
private void _AddAgentToGroup(string RequestingAgentID, string AgentID, UUID GroupID, UUID RoleID)
|
protected void _AddAgentToGroup(string RequestingAgentID, string AgentID, UUID GroupID, UUID RoleID)
|
||||||
{
|
{
|
||||||
_AddAgentToGroup(RequestingAgentID, AgentID, GroupID, RoleID, string.Empty);
|
_AddAgentToGroup(RequestingAgentID, AgentID, GroupID, RoleID, string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void _RemoveAgentFromGroup(string RequestingAgentID, string AgentID, UUID GroupID)
|
protected void _RemoveAgentFromGroup(string RequestingAgentID, string AgentID, UUID GroupID)
|
||||||
{
|
{
|
||||||
// 1. Delete membership
|
// 1. Delete membership
|
||||||
m_Database.DeleteMember(GroupID, AgentID);
|
m_Database.DeleteMember(GroupID, AgentID);
|
||||||
|
@ -780,7 +780,7 @@ namespace OpenSim.Groups
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool _AddOrUpdateGroupRole(string RequestingAgentID, UUID groupID, UUID roleID, string name, string description, string title, ulong powers, bool add)
|
protected bool _AddOrUpdateGroupRole(string RequestingAgentID, UUID groupID, UUID roleID, string name, string description, string title, ulong powers, bool add)
|
||||||
{
|
{
|
||||||
RoleData data = m_Database.RetrieveRole(groupID, roleID);
|
RoleData data = m_Database.RetrieveRole(groupID, roleID);
|
||||||
|
|
||||||
|
@ -810,12 +810,12 @@ namespace OpenSim.Groups
|
||||||
return m_Database.StoreRole(data);
|
return m_Database.StoreRole(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void _RemoveGroupRole(UUID groupID, UUID roleID)
|
protected void _RemoveGroupRole(UUID groupID, UUID roleID)
|
||||||
{
|
{
|
||||||
m_Database.DeleteRole(groupID, roleID);
|
m_Database.DeleteRole(groupID, roleID);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void _AddAgentToGroupRole(string RequestingAgentID, string AgentID, UUID GroupID, UUID RoleID)
|
protected void _AddAgentToGroupRole(string RequestingAgentID, string AgentID, UUID GroupID, UUID RoleID)
|
||||||
{
|
{
|
||||||
RoleMembershipData data = m_Database.RetrieveRoleMember(GroupID, RoleID, AgentID);
|
RoleMembershipData data = m_Database.RetrieveRoleMember(GroupID, RoleID, AgentID);
|
||||||
if (data != null)
|
if (data != null)
|
||||||
|
@ -840,7 +840,7 @@ namespace OpenSim.Groups
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<GroupRolesData> _GetGroupRoles(UUID groupID)
|
protected List<GroupRolesData> _GetGroupRoles(UUID groupID)
|
||||||
{
|
{
|
||||||
List<GroupRolesData> roles = new List<GroupRolesData>();
|
List<GroupRolesData> roles = new List<GroupRolesData>();
|
||||||
|
|
||||||
|
@ -865,7 +865,7 @@ namespace OpenSim.Groups
|
||||||
return roles;
|
return roles;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<ExtendedGroupRoleMembersData> _GetGroupRoleMembers(UUID GroupID, bool isInGroup)
|
protected List<ExtendedGroupRoleMembersData> _GetGroupRoleMembers(UUID GroupID, bool isInGroup)
|
||||||
{
|
{
|
||||||
List<ExtendedGroupRoleMembersData> rmembers = new List<ExtendedGroupRoleMembersData>();
|
List<ExtendedGroupRoleMembersData> rmembers = new List<ExtendedGroupRoleMembersData>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue