mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
thanks for the tip!
This commit is contained in:
parent
c2d26029ae
commit
f558e76cc8
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue