Commit 1164a30a authored by Alexandru Lupu - Tremend's avatar Alexandru Lupu - Tremend
Browse files

Fixing Delete Gallery Item

parent d20344bc
......@@ -56,7 +56,7 @@ module Decidim
def destroy
enforce_permission_to :destroy, :gallery, gallery_item: gallery_item
post.destroy!
gallery_item.destroy!
flash[:notice] = I18n.t("gallery_item.destroy.success", scope: "decidim.gallery.admin")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment