Repository navigation
fix(frontend): show owners the participant pages a participant sees - #456
Merged
Merged
Conversation
Participant pages read teams with whatever the viewer may list. An owner may always list them, so with View teams off an owner still saw the team list, teams on participant profiles, a filled ballot and "you are not on a team yet" where participants are told assignments are not published. Add teamsPublished/listPublishedTeams, which go by CAPABILITY_VIEW_TEAMS rather than the permission, and use them on every participant page: Teams, Overview, participant profiles, Submissions, Our submission, Voting, Results and the sidebar. Manage pages keep the owner's full view, and so do a single team's and submission's pages, which Manage links to.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Participant View shows owners what participants see
Before: with
See team assignmentsoff, an Owner in Participant View still saw the team list, teams on profiles and "You are not on a team yet". Participants are told assignments aren't published. Now every Participant View page follows the switch for Owners too.Teams,Overview, profiles,Submissions,Our submission,VotingandResultsmatch what participants see.Left out: a single team's page and a single submission's page stay open to Owners, because Manage links to them. After a reload, the team page's back link can fall back to Teams, which Owners now can't open while the switch is off.