mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Fixed permissions bug related to friends in PermissionsModule. Added FriendsData[] GetFriends(string principalID) to IFriendsData and FriendInfo[] GetFriends(string PrincipalID) to IFriendsService. Refactored some more in the FriendsModule. Made client get notification of local friends permissions upon HGLogin. HG Friends object permissions work.
This commit is contained in:
@@ -62,7 +62,7 @@ namespace OpenSim.Services.HypergridService
|
||||
UUID userID;
|
||||
if (UUID.TryParse(PrincipalID, out userID))
|
||||
{
|
||||
FriendsData[] friendsData = m_Database.GetFriends(userID);
|
||||
FriendsData[] friendsData = m_Database.GetFriends(userID.ToString());
|
||||
List<FriendsData> fList = new List<FriendsData>(friendsData);
|
||||
if (fList.Find(delegate(FriendsData fdata)
|
||||
{
|
||||
@@ -70,6 +70,8 @@ namespace OpenSim.Services.HypergridService
|
||||
}) != null)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
|
||||
FriendsData d = new FriendsData();
|
||||
d.PrincipalID = PrincipalID;
|
||||
|
||||
Reference in New Issue
Block a user