diff --git a/app/controllers/forumgroups_controller.rb b/app/controllers/forumgroups_controller.rb index 95f372b..bd6e3cb 100644 --- a/app/controllers/forumgroups_controller.rb +++ b/app/controllers/forumgroups_controller.rb @@ -58,6 +58,7 @@ class ForumgroupsController < ApplicationController def destroy if admin? + @group = Forumgroup.find(params[:id]) if @group.destroy flash[:notice] = "forum group deleted." else