fix not shown ban reason

This commit is contained in:
pixeldesu 2015-05-05 18:09:26 +02:00
parent 9b39491d88
commit 42b41a268b
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class ApplicationController < ActionController::Base
name = current_user.screen_name
# obligatory '2001: A Space Odyssey' reference
flash[:notice] = "I'm sorry, #{name}, I'm afraid I can't do that."
if current_user.ban_reason.nil?
unless current_user.ban_reason.nil?
flash[:notice] += "\nBan reason: #{current_user.ban_reason}"
end
if not current_user.permanently_banned?