Restrict access to single polls per user role

Created on 4 June 2023, over 1 year ago

Problem/Motivation

I have several groups of people acting on my website, all registered and with an own user role per usergroup. all of them shall be allowed to create new polls but not everyone shall be allowed to participate in every poll. If I remove the general permission to see the poll's overview page from a user role, they get an access denied error after saving a new poll they just created.

Steps to reproduce

install advanced poll module, remove the permission to see the poll's overview page to the user that is going to create a new poll. then create a new poll and click on submit in the end.

Proposed resolution

I see two different solutions:

1) either the mentioned problem could be simply solved by adding a mandatory field to the poll creation form to define wich user roles are granted access to this specific poll, so they get shown on the poll overview page only to users with the appropriate permissions.

2) or instead of automatically forwarding the user to the poll's overview page after just having created a poll, a simple site with a success message on top, showing the just created poll in participant's view mode would do the job, too. then the creator of the poll could simply copy the individual link to the poll and share it with all users he wants to participate (f.e.x in a forum inside the website, per private contact form or elsewhere where it makes sense in the specific case).
I guess the second proposed solution may be easier to put into reality, but that's your choice (I'm not a developer at all, so I cant judge about the effort necessary nor could do it myself)

Feature request
Status

Active

Version

1.2

Component

Miscellaneous

Created by

🇩🇪Germany Sajara

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

Comments & Activities

Production build 0.71.5 2024