that was not necessary

This commit is contained in:
Luna D 2020-02-22 11:31:57 -05:00
parent d5337eb75a
commit 3fdae6b99c
No known key found for this signature in database
GPG key ID: D0F46C94720BAA4B

View file

@ -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,