Archived
fix forum group deletion
This commit is contained in:
@@ -58,6 +58,7 @@ class ForumgroupsController < ApplicationController
|
|||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
if admin?
|
if admin?
|
||||||
|
@group = Forumgroup.find(params[:id])
|
||||||
if @group.destroy
|
if @group.destroy
|
||||||
flash[:notice] = "forum group deleted."
|
flash[:notice] = "forum group deleted."
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user