In election_fptp_election_results_page_alter(), a candidate name might be displayed as "Candidate (access not available)". This happens with the candidate is published but election_candidate_access() returns FALSE. I noticed this when using election_fptp_election_results_page_alter() from cron, which runs as anonymous. There is no way to override which user is used for purposes of permissions determination.

I cannot imaging a situation where a user would have the permission to see election results, but not the names of the published candidates, particularly since candidate access is itself based on access to elections and election posts. So, I propose to change election_fptp_election_results_page_alter() so that published candidate names will always be displayed with election results.

Comments

Liam Morland created an issue. See original summary.

liam morland’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.