allow assistants to change image hide reasons

This commit is contained in:
byte[] 2020-09-06 23:59:50 -04:00
parent 9a9d000c74
commit 04b893eaaf

View file

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