mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 19:47:48 +01:00
[skip ci] fix comments
This commit is contained in:
parent
69a1bb32f4
commit
c6028f8dee
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue