fix forum deletion

This commit is contained in:
jomo
2014-06-25 02:12:08 +02:00
parent 284f5a60d4
commit 3cb71281fb

View File

@@ -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) }