Closed Bug 850351 Opened 9 years ago Closed 9 years ago

Add backend logic to support the "View As" dropdown on profile view

Categories

(Participation Infrastructure :: Phonebook, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
2013-03-28

People

(Reporter: hoosteeno, Assigned: giorgos)

References

Details

As part of the privacy controls push, we added a "View As" dropdown to the profile view page. This feature uses javascript to hide/show fields depending on the dropdown item selected. We need to add classes to the fields there based on the user's privacy settings. The classes are:

.all == this class works with the 'Myself' selection
.public == this class works with the 'Public' selection
.mozillians == this class works with the 'Mozillians' selection. Currently, it
is set to default to this for the initial value.

Here is a link to the JS code:
https://github.com/mozilla/mozillians/blob/privacy/media/js/main.js#L29

QA: We'll know this works if a user's actual privacy settings are reflected by each of the dropdown selections.
Assignee: nobody → giorgos
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
QA verified on stage:

Viewing a profile (ones own) through the lens of; myself, mozillian, public correctly reflects what the user selected for the visibility on those fields.
Status: RESOLVED → VERIFIED
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.