Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CoFE
digit-cofe-libraries
digit-cofe-media-gallery
Commits
1164a30a
Commit
1164a30a
authored
Nov 04, 2021
by
Alexandru Lupu - Tremend
Browse files
Fixing Delete Gallery Item
parent
d20344bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/controllers/decidim/gallery/admin/gallery_item_controller.rb
View file @
1164a30a
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment