fix not shown ban reason
This commit is contained in:
parent
9b39491d88
commit
42b41a268b
|
@ -12,7 +12,7 @@ class ApplicationController < ActionController::Base
|
||||||
name = current_user.screen_name
|
name = current_user.screen_name
|
||||||
# obligatory '2001: A Space Odyssey' reference
|
# obligatory '2001: A Space Odyssey' reference
|
||||||
flash[:notice] = "I'm sorry, #{name}, I'm afraid I can't do that."
|
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}"
|
flash[:notice] += "\nBan reason: #{current_user.ban_reason}"
|
||||||
end
|
end
|
||||||
if not current_user.permanently_banned?
|
if not current_user.permanently_banned?
|
||||||
|
|
Loading…
Reference in New Issue