Don't redirect to duplicate_id for any del value

This commit is contained in:
mdashlw 2025-02-11 07:29:17 +00:00
parent a8f84ec4cb
commit 9b2c7dc8b8

View file

@ -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,