fixes #1284
This commit is contained in:
@@ -88,7 +88,7 @@ protected
|
||||
|
||||
%w(member banned builder privileged platinum contributor janitor moderator admin).each do |level|
|
||||
define_method("#{level}_only") do
|
||||
if CurrentUser.user.__send__("is_#{level}?")
|
||||
if !CurrentUser.user.is_banned? && CurrentUser.user.__send__("is_#{level}?")
|
||||
true
|
||||
else
|
||||
access_denied()
|
||||
|
||||
@@ -2,7 +2,7 @@ class BansController < ApplicationController
|
||||
before_filter :moderator_only, :except => [:show, :index]
|
||||
|
||||
def new
|
||||
@ban = Ban.new
|
||||
@ban = Ban.new(params[:ban])
|
||||
end
|
||||
|
||||
def edit
|
||||
|
||||
Reference in New Issue
Block a user