mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
allow assistants to change image hide reasons
This commit is contained in:
parent
9a9d000c74
commit
04b893eaaf
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue