diff options
author | Diva Canto | 2011-05-21 16:48:00 -0700 |
---|---|---|
committer | Diva Canto | 2011-05-21 16:48:00 -0700 |
commit | 58c53c41de2cae0bb041a2e8121792e136d1edb2 (patch) | |
tree | b792158cd178f88234f86ab4d72c4224b45fe6ba /OpenSim/Services/HypergridService | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-58c53c41de2cae0bb041a2e8121792e136d1edb2.zip opensim-SC_OLD-58c53c41de2cae0bb041a2e8121792e136d1edb2.tar.gz opensim-SC_OLD-58c53c41de2cae0bb041a2e8121792e136d1edb2.tar.bz2 opensim-SC_OLD-58c53c41de2cae0bb041a2e8121792e136d1edb2.tar.xz |
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.
Diffstat (limited to 'OpenSim/Services/HypergridService')
-rw-r--r-- | OpenSim/Services/HypergridService/HGFriendsService.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Services/HypergridService/HGFriendsService.cs b/OpenSim/Services/HypergridService/HGFriendsService.cs index fa4ec5d..3ffe889 100644 --- a/OpenSim/Services/HypergridService/HGFriendsService.cs +++ b/OpenSim/Services/HypergridService/HGFriendsService.cs | |||
@@ -62,7 +62,7 @@ namespace OpenSim.Services.HypergridService | |||
62 | UUID userID; | 62 | UUID userID; |
63 | if (UUID.TryParse(PrincipalID, out userID)) | 63 | if (UUID.TryParse(PrincipalID, out userID)) |
64 | { | 64 | { |
65 | FriendsData[] friendsData = m_Database.GetFriends(userID); | 65 | FriendsData[] friendsData = m_Database.GetFriends(userID.ToString()); |
66 | List<FriendsData> fList = new List<FriendsData>(friendsData); | 66 | List<FriendsData> fList = new List<FriendsData>(friendsData); |
67 | if (fList.Find(delegate(FriendsData fdata) | 67 | if (fList.Find(delegate(FriendsData fdata) |
68 | { | 68 | { |
@@ -70,6 +70,8 @@ namespace OpenSim.Services.HypergridService | |||
70 | }) != null) | 70 | }) != null) |
71 | return false; | 71 | return false; |
72 | } | 72 | } |
73 | else | ||
74 | return false; | ||
73 | 75 | ||
74 | FriendsData d = new FriendsData(); | 76 | FriendsData d = new FriendsData(); |
75 | d.PrincipalID = PrincipalID; | 77 | d.PrincipalID = PrincipalID; |