Skip to content

Commit

Permalink
fix destroy token
Browse files Browse the repository at this point in the history
  • Loading branch information
antopalidi committed Sep 5, 2024
1 parent 8aa02c6 commit 0e6c2c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def update
def destroy
enforce_permission_to(:destroy, :share_tokens, share_token: current_token)

Decidim::Commands::DestroyResource.call(current_token, current_user) do
DestroyShareToken.call(current_token, current_user) do
on(:ok) do
flash[:notice] = I18n.t("share_tokens.destroy.success", scope: "decidim.admin")
end
Expand Down

0 comments on commit 0e6c2c7

Please sign in to comment.