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
|
||||
|
||||
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 ip_check && Site.banned_ip?(request.ip)
|
||||
|
|
Loading…
Add table
Reference in a new issue