When running elections, I was asked to remove the "Candidate" tab from being shown to all voters. Because of our setup, people were becoming confused as to its purpose and thought they could vote on it.

To alleviate this, I'd like to add a permission specifically to be able to view that tab and its contents. This could make it, for example, so voters are only presented with candidate names and asked to vote.

Comments

ricky.middaugh’s picture

Status: Active » Needs review
StatusFileSize
new1.67 KB

Adding a patch for review. This adds a new permission for the election_candidate module and will keep users from seeing candidates without the new permission. If they have it, they will still need the current permission to also be able to view the election.

ricky.middaugh’s picture

Assigned: ricky.middaugh » Unassigned
pjcdawkins’s picture

StatusFileSize
new1.9 KB
new772 bytes
+    'view candidate list' => array(
+      'title' => t('View candidate list'),
+      'description' => t('This allows the user to view all candidates for an election.'),
+    ),

The problem with this is that it suggests if the permission is not granted, then the user won't be able to see candidates - actually the user still can see candidates, in places such as the post's page (election-post/%election_post), and in the voting form. I would rename it as something like "View Candidates tab", description "This shows an overview list of candidates in a tab for each election.".

I understand in your use case, the aim is just to reduce confusion, not actually a security consideration - is that right?

I was thinking of getting rid of the Candidates tab, but it may be useful to some. See the two attached patches for two more approaches. Or another idea might be to make it a setting per election.

ricky.middaugh’s picture

You're correct that we just wanted to reduce confusion when we hid it - without more information on the page, people thought they could vote there.

I think the Candidates tab has a use to give more details about candidates than just a name. For example, it could include a picture of the candidate, some platform statement, stuff like that. Of the choices above, I would suggest making it a setting per election until we better decide what to do with that page.

pjcdawkins’s picture

Status: Needs review » Needs work

OK. This is how we've used the tab, to give an idea:
http://uclu.org/election/14/candidates

pjcdawkins’s picture

Title: Add permission to view "Candidate" tab for elections » Add setting to show the "Candidates" tab for elections
Status: Needs work » Needs review
StatusFileSize
new4.53 KB

Try this

pjcdawkins’s picture

Status: Needs review » Fixed

Committed the above.

Status: Fixed » Closed (fixed)

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