diff --git a/lib/philomena_web/controllers/image/comment_controller.ex b/lib/philomena_web/controllers/image/comment_controller.ex index 13b7b92c..4fc55e4f 100644 --- a/lib/philomena_web/controllers/image/comment_controller.ex +++ b/lib/philomena_web/controllers/image/comment_controller.ex @@ -21,7 +21,7 @@ defmodule PhilomenaWeb.Image.CommentController do # Undo the previous private parameter screwery plug PhilomenaWeb.LoadCommentPlug, [param: "id", show_hidden: true] when action in [:show] 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, model: Comment,