aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorDiva Canto2010-06-28 16:04:12 -0700
committerDiva Canto2010-06-28 16:04:12 -0700
commitd1233501648d4c76abb259faf2a30095bc99b3f6 (patch)
tree798cdffd9bd74ec5d13021093465b9980d541d3e /OpenSim/Region
parentFixes mantis #4815 and #4812 (diff)
downloadopensim-SC_OLD-d1233501648d4c76abb259faf2a30095bc99b3f6.zip
opensim-SC_OLD-d1233501648d4c76abb259faf2a30095bc99b3f6.tar.gz
opensim-SC_OLD-d1233501648d4c76abb259faf2a30095bc99b3f6.tar.bz2
opensim-SC_OLD-d1233501648d4c76abb259faf2a30095bc99b3f6.tar.xz
One more bug fix in FriendsModule: GrantRights. One of the caches was not being updated.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index 5552be7..6f044cb 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -768,8 +768,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
768 bool canEditObjectsChanged = ((rights ^ userFlags) & (int)FriendRights.CanModifyObjects) != 0; 768 bool canEditObjectsChanged = ((rights ^ userFlags) & (int)FriendRights.CanModifyObjects) != 0;
769 if (canEditObjectsChanged) 769 if (canEditObjectsChanged)
770 friendClient.SendChangeUserRights(userID, friendID, rights); 770 friendClient.SendChangeUserRights(userID, friendID, rights);
771
771 } 772 }
772 773
774 // update local cache
775 //m_Friends[friendID].Friends = m_FriendsService.GetFriends(friendID);
776 foreach (FriendInfo finfo in m_Friends[friendID].Friends)
777 if (finfo.Friend == userID.ToString())
778 finfo.TheirFlags = rights;
779
773 return true; 780 return true;
774 } 781 }
775 782