diff options
author | Diva Canto | 2010-06-28 16:04:12 -0700 |
---|---|---|
committer | Diva Canto | 2010-06-28 16:04:12 -0700 |
commit | d1233501648d4c76abb259faf2a30095bc99b3f6 (patch) | |
tree | 798cdffd9bd74ec5d13021093465b9980d541d3e /OpenSim/Region | |
parent | Fixes mantis #4815 and #4812 (diff) | |
download | opensim-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 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | 7 |
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 | ||