Only disable friend items that have rights changed (scope reduction surgery)

Thanks to Deltek for finding this one!
This commit is contained in:
Inusaito Sayori
2014-10-17 00:53:56 -04:00
parent e98792209e
commit 39d3a58b49

View File

@@ -885,8 +885,6 @@ bool LLPanelFriends::modifyRightsConfirmation(const LLSD& notification, const LL
void LLPanelFriends::applyRightsToFriends()
{
bool rights_changed = false;
// store modify rights separately for confirmation
rights_map_t rights_updates;
@@ -904,6 +902,7 @@ void LLPanelFriends::applyRightsToFriends()
bool show_online_staus = (*itr)->getColumn(LIST_VISIBLE_ONLINE)->getValue().asBoolean();
bool show_map_location = (*itr)->getColumn(LIST_VISIBLE_MAP)->getValue().asBoolean();
bool allow_modify_objects = (*itr)->getColumn(LIST_EDIT_MINE)->getValue().asBoolean();
bool rights_changed(false);
S32 rights = buddy_relationship->getRightsGrantedTo();
if (buddy_relationship->isRightGrantedTo(LLRelationship::GRANT_ONLINE_STATUS) != show_online_staus)