mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-17 11:04:22 +01:00
that was not necessary
This commit is contained in:
parent
d5337eb75a
commit
3fdae6b99c
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ defmodule PhilomenaWeb.Image.CommentController do
|
||||||
# Undo the previous private parameter screwery
|
# Undo the previous private parameter screwery
|
||||||
plug PhilomenaWeb.LoadCommentPlug, [param: "id", show_hidden: true] when action in [:show]
|
plug PhilomenaWeb.LoadCommentPlug, [param: "id", show_hidden: true] when action in [:show]
|
||||||
plug PhilomenaWeb.LoadCommentPlug, [param: "id"] when action in [:edit, :update]
|
plug PhilomenaWeb.LoadCommentPlug, [param: "id"] when action in [:edit, :update]
|
||||||
plug PhilomenaWeb.CanaryMapPlug, create: :create_comment, edit: :edit, update: :edit
|
plug PhilomenaWeb.CanaryMapPlug, create: :create, edit: :edit, update: :edit
|
||||||
|
|
||||||
plug :authorize_resource,
|
plug :authorize_resource,
|
||||||
model: Comment,
|
model: Comment,
|
||||||
|
|
Loading…
Reference in a new issue