One more bug fix in FriendsModule: GrantRights. One of the caches was not being updated.

0.7-release
Diva Canto 2010-06-28 16:04:12 -07:00
parent 20fc35399b
commit d123350164
1 changed files with 7 additions and 0 deletions

View File

@ -768,8 +768,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
bool canEditObjectsChanged = ((rights ^ userFlags) & (int)FriendRights.CanModifyObjects) != 0;
if (canEditObjectsChanged)
friendClient.SendChangeUserRights(userID, friendID, rights);
}
// update local cache
//m_Friends[friendID].Friends = m_FriendsService.GetFriends(friendID);
foreach (FriendInfo finfo in m_Friends[friendID].Friends)
if (finfo.Friend == userID.ToString())
finfo.TheirFlags = rights;
return true;
}