From 8e8114a46f16c6219d4ed7365b636e18198861a6 Mon Sep 17 00:00:00 2001 From: Anna Topalidi Date: Fri, 6 Sep 2024 10:06:21 +0200 Subject: [PATCH] fix permissions in the controller --- .../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 dc6aa8a2f5662..7a794db0de11d 100644 --- a/decidim-admin/app/controllers/decidim/admin/share_tokens_controller.rb +++ b/decidim-admin/app/controllers/decidim/admin/share_tokens_controller.rb @@ -37,7 +37,7 @@ def create end def edit - enforce_permission_to(:update, :share_token, share_token: current_token) + enforce_permission_to(:update, :share_tokens, share_token: current_token) @form = form(ShareTokenForm).from_model(current_token) end