mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-04-20 10:13:59 +02:00
Don't redirect to duplicate_id for any del value
This commit is contained in:
parent
a8f84ec4cb
commit
9b2c7dc8b8
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ defmodule PhilomenaWeb.ImageController do
|
|||
|
||||
not is_nil(image.duplicate_id) and
|
||||
(not Canada.Can.can?(conn.assigns.current_user, :show, image) or
|
||||
conn.params["del"] != "1") ->
|
||||
conn.params["del"] == nil) ->
|
||||
conn
|
||||
|> put_flash(
|
||||
:info,
|
||||
|
|
Loading…
Add table
Reference in a new issue