mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
No session ban
This commit is contained in:
parent
08a29c8768
commit
322201332f
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ def deleted?
|
||||||
end
|
end
|
||||||
|
|
||||||
def banned?(ip_check=false)
|
def banned?(ip_check=false)
|
||||||
return true if session[:banned]
|
#return true if session[:banned]
|
||||||
return true if current_site && (current_site.is_banned || parent_site.is_banned)
|
return true if current_site && (current_site.is_banned || parent_site.is_banned)
|
||||||
|
|
||||||
return true if ip_check && Site.banned_ip?(request.ip)
|
return true if ip_check && Site.banned_ip?(request.ip)
|
||||||
|
@ -137,4 +137,4 @@ def hcaptcha_valid?
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue