From 3cb71281fbe1e2da839af21a45d334b0bca99e76 Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 25 Jun 2014 02:12:08 +0200 Subject: [PATCH] fix forum deletion --- app/controllers/forums_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/forums_controller.rb b/app/controllers/forums_controller.rb index 042623d..61cd0d9 100644 --- a/app/controllers/forums_controller.rb +++ b/app/controllers/forums_controller.rb @@ -1,5 +1,5 @@ class ForumsController < ApplicationController - before_filter :check_permission, only: [:show, :edit, :update] + before_filter :check_permission, only: [:show, :edit, :update, :destroy] def index @groups = Forumgroup.select {|g| g.can_read?(current_user) }