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