From f558e76cc8b8802b5bbbf027ad76ca3782ca2a1d Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 23 Jan 2020 12:32:26 -0500 Subject: [PATCH] thanks for the tip! --- lib/philomena_web/controllers/gallery/image_controller.ex | 2 ++ lib/philomena_web/controllers/gallery/order_controller.ex | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/philomena_web/controllers/gallery/image_controller.ex b/lib/philomena_web/controllers/gallery/image_controller.ex index 2bf3c3af..0baeb4d0 100644 --- a/lib/philomena_web/controllers/gallery/image_controller.ex +++ b/lib/philomena_web/controllers/gallery/image_controller.ex @@ -6,6 +6,8 @@ defmodule PhilomenaWeb.Gallery.ImageController do alias Philomena.Images alias Philomena.Galleries + plug PhilomenaWeb.FilterBannedUsersPlug + plug PhilomenaWeb.CanaryMapPlug, create: :edit, delete: :edit plug :load_and_authorize_resource, model: Gallery, id_name: "gallery_id", persisted: true diff --git a/lib/philomena_web/controllers/gallery/order_controller.ex b/lib/philomena_web/controllers/gallery/order_controller.ex index 4892d5d4..301d4c57 100644 --- a/lib/philomena_web/controllers/gallery/order_controller.ex +++ b/lib/philomena_web/controllers/gallery/order_controller.ex @@ -4,6 +4,8 @@ defmodule PhilomenaWeb.Gallery.OrderController do alias Philomena.Galleries.Gallery alias Philomena.Galleries + plug PhilomenaWeb.FilterBannedUsersPlug + plug PhilomenaWeb.CanaryMapPlug, update: :edit plug :load_and_authorize_resource, model: Gallery, id_name: "gallery_id", persisted: true