fix forum deletion
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
class ForumsController < ApplicationController
|
class ForumsController < ApplicationController
|
||||||
before_filter :check_permission, only: [:show, :edit, :update]
|
before_filter :check_permission, only: [:show, :edit, :update, :destroy]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@groups = Forumgroup.select {|g| g.can_read?(current_user) }
|
@groups = Forumgroup.select {|g| g.can_read?(current_user) }
|
||||||
|
|||||||
Reference in New Issue
Block a user