# In polls: Make results and users only visible to admins

**URL:** https://meta.discourse.org/t/in-polls-make-results-and-users-only-visible-to-admins/69136
**Category:** Feature
**Tags:** polls, pr-welcome
**Created:** [31 Agosto , 2017 10:27 UTC](https://meta.discourse.org/t/in-polls-make-results-and-users-only-visible-to-admins/69136 "2017-08-31T10:27:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [31 Agosto , 2017 10:27 UTC](https://meta.discourse.org/t/in-polls-make-results-and-users-only-visible-to-admins/69136/1 "2017-08-31T10:27:08Z")

</div>

Continuing the discussion from [Elections Plugin](https://meta.discourse.org/t/elections-plugin/68521/23):

> [@Elections Plugin](https://meta.discourse.org/t/elections-plugin/68521/23):
>
> I personally think this would be a great expansion to the polls plugin. I see two neat areas for expansion: **results only visible to admins, and users only visible to admins (everyone can see results).**

#pr-welcome on this feature.

@jomaxro @angus what do you suggest the syntax for this should be?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [31 Agosto , 2017 15:41 UTC](https://meta.discourse.org/t/in-polls-make-results-and-users-only-visible-to-admins/69136/2 "2017-08-31T15:41:49Z")

</div>

At the moment we use `public=true` to define whether who voted for what is shared publically. I tried to think of how to keep this as valid syntax, but because polls would now have more than two states, ie. not binary, having a true/false flag will not work. The poll is not public vs. private, the results are.

So I could see `results=staff-only` `users=public` and `users=staff-only` as the valid options.

Default (no `results=` or `users=` syntax): Same as current default. Aggregate results public, users private.  
`users=public`: Replaces current `public=true` syntax. Both aggregate results and users are public.  
`users=staff-only`: New feature. Aggregate results public, users visible to staff only.  
`results=staff-only`: New feature. Aggregate results staff-only, users private.  
`results=staff-only users=staff-only`: New feature. Aggregate results staff-only, users staff-only.  
`results=staff-only users=public`: Not sure on this one. Ideally it should be invalid, but I think in practice it should function the same as `results=staff-only users=staff-only`.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [31 Agosto , 2017 16:04 UTC](https://meta.discourse.org/t/in-polls-make-results-and-users-only-visible-to-admins/69136/3 "2017-08-31T16:04:11Z")

</div>

What about the author of the post containing the poll? Should it be possible for the author to limit who can see the results as well?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [31 Agosto , 2017 16:06 UTC](https://meta.discourse.org/t/in-polls-make-results-and-users-only-visible-to-admins/69136/4 "2017-08-31T16:06:01Z")

</div>

In my opinion that would be a separate request/PR. There are additional issues that come with involving the restricting the visibility of the poll to the post owner.

---

<div class="post-metadata">

### Author: ![Speck\_of\_the\_Cosmos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/speck_of_the_cosmos/32/119544_2.png) [@Speck\_of\_the\_Cosmos](https://meta.discourse.org/u/Speck_of_the_Cosmos)
#### Post date: [11 Junho , 2018 00:38 UTC](https://meta.discourse.org/t/in-polls-make-results-and-users-only-visible-to-admins/69136/5 "2018-06-11T00:38:08Z")

</div>

I would like this in order to keep the popularity bias from influencing the results of an election. People tend to vote for the most popular candidate.
