app/controllers/decidim/admin/user_groups_controller.rb in decidim-admin-0.9.3 vs app/controllers/decidim/admin/user_groups_controller.rb in decidim-admin-0.10.0

- old
+ new

@@ -18,11 +18,11 @@ def verify @user_group = collection.find(params[:id]) authorize! :verify, @user_group - VerifyUserGroup.call(@user_group) do + VerifyUserGroup.call(@user_group, current_user) do on(:ok) do flash[:notice] = I18n.t("user_group.verify.success", scope: "decidim.admin") redirect_back(fallback_location: decidim_admin.user_groups_path) end @@ -35,10 +35,10 @@ def reject @user_group = collection.find(params[:id]) authorize! :reject, @user_group - RejectUserGroup.call(@user_group) do + RejectUserGroup.call(@user_group, current_user) do on(:ok) do flash[:notice] = I18n.t("user_group.reject.success", scope: "decidim.admin") redirect_back(fallback_location: decidim_admin.user_groups_path) end