From 0e6c2c7c0498f2977d2e2c4eec970c94ffad9d7b Mon Sep 17 00:00:00 2001 From: Anna Topalidi Date: Thu, 5 Sep 2024 14:24:20 +0200 Subject: [PATCH] fix destroy token --- .../app/controllers/decidim/admin/share_tokens_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decidim-admin/app/controllers/decidim/admin/share_tokens_controller.rb b/decidim-admin/app/controllers/decidim/admin/share_tokens_controller.rb index 84ca30e3c7aa2..dc6aa8a2f5662 100644 --- a/decidim-admin/app/controllers/decidim/admin/share_tokens_controller.rb +++ b/decidim-admin/app/controllers/decidim/admin/share_tokens_controller.rb @@ -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