mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
fix poll voting permissions
This commit is contained in:
parent
9272cccf01
commit
823834e5c1
1 changed files with 4 additions and 0 deletions
|
@ -8,7 +8,11 @@ defmodule PhilomenaWeb.Topic.Poll.VoteController do
|
|||
import Ecto.Query
|
||||
|
||||
plug :verify_authorized when action in [:index, :delete]
|
||||
plug PhilomenaWeb.FilterBannedUsersPlug when action in [:create]
|
||||
|
||||
plug PhilomenaWeb.CanaryMapPlug, index: :show, create: :show, delete: :show
|
||||
plug :load_and_authorize_resource, model: Forum, id_name: "forum_id", id_field: "short_name", persisted: true
|
||||
|
||||
plug PhilomenaWeb.LoadTopicPlug
|
||||
plug PhilomenaWeb.LoadPollPlug
|
||||
|
||||
|
|
Loading…
Reference in a new issue