[skip ci] fix comments

This commit is contained in:
Yuki 2015-05-26 09:01:06 +05:30
parent 69a1bb32f4
commit c6028f8dee
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base
before_filter :check_locale
before_filter :banned?
# check if user got hit by the banhammer of doom
# check if user wants to read
def check_locale
if params[:hl].nil?
if current_user.present?
@ -26,6 +26,7 @@ class ApplicationController < ActionController::Base
cookies[:hl] = I18n.locale #unless cookies[:allow_cookies].nil? # some EU cookie bullsh-
end
# check if user got hit by the banhammer of doom
def banned?
if current_user.present? && current_user.banned?
name = current_user.screen_name