From 04b893eaaf178c13666cc045fa3a3ad521a0a435 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 6 Sep 2020 23:59:50 -0400 Subject: [PATCH] allow assistants to change image hide reasons --- lib/philomena_web/controllers/image/delete_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/image/delete_controller.ex b/lib/philomena_web/controllers/image/delete_controller.ex index c9aae40d..c62cf376 100644 --- a/lib/philomena_web/controllers/image/delete_controller.ex +++ b/lib/philomena_web/controllers/image/delete_controller.ex @@ -7,7 +7,7 @@ defmodule PhilomenaWeb.Image.DeleteController do alias Philomena.Images.Image alias Philomena.Images - plug PhilomenaWeb.CanaryMapPlug, create: :hide, delete: :hide + plug PhilomenaWeb.CanaryMapPlug, create: :hide, update: :hide, delete: :hide plug :load_and_authorize_resource, model: Image, id_name: "image_id", persisted: true plug :verify_deleted when action in [:update]