thanks for the tip!

This commit is contained in:
byte[] 2020-01-23 12:32:26 -05:00
parent c2d26029ae
commit f558e76cc8
2 changed files with 4 additions and 0 deletions

View file

@ -6,6 +6,8 @@ defmodule PhilomenaWeb.Gallery.ImageController do
alias Philomena.Images alias Philomena.Images
alias Philomena.Galleries alias Philomena.Galleries
plug PhilomenaWeb.FilterBannedUsersPlug
plug PhilomenaWeb.CanaryMapPlug, create: :edit, delete: :edit plug PhilomenaWeb.CanaryMapPlug, create: :edit, delete: :edit
plug :load_and_authorize_resource, model: Gallery, id_name: "gallery_id", persisted: true plug :load_and_authorize_resource, model: Gallery, id_name: "gallery_id", persisted: true

View file

@ -4,6 +4,8 @@ defmodule PhilomenaWeb.Gallery.OrderController do
alias Philomena.Galleries.Gallery alias Philomena.Galleries.Gallery
alias Philomena.Galleries alias Philomena.Galleries
plug PhilomenaWeb.FilterBannedUsersPlug
plug PhilomenaWeb.CanaryMapPlug, update: :edit plug PhilomenaWeb.CanaryMapPlug, update: :edit
plug :load_and_authorize_resource, model: Gallery, id_name: "gallery_id", persisted: true plug :load_and_authorize_resource, model: Gallery, id_name: "gallery_id", persisted: true