/poll overview shows unpublished polls

Created on 10 October 2024, 4 months ago

Problem/Motivation

I noticed the /poll overview is showing unpublished polls as well, regardless if you have the permission or not.

Steps to reproduce

Create a poll in every state
Published | Open
1 | 1
0 | 0
1 | 0
0 | 1

You will see 4 polls on /poll when logged in with a user with the "view polls" permission.

Proposed resolution

Check if we can write an access handler instead of updating the view.

Check if this issue is also replicated on the admin overview page.

Remaining tasks

MR
Add test

User interface changes

N/A

API changes

Potentially an access handler (change).

Data model changes

N/A

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium BramDriesen Belgium 🇧🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024