mirror of
https://github.com/neocities/neocities.git
synced 2025-05-15 08:57:17 +02:00
check for database record for require_login
This commit is contained in:
parent
6c939eaa83
commit
ba628805bd
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ def is_education?
|
|||
end
|
||||
|
||||
def require_login
|
||||
redirect '/' unless signed_in?
|
||||
redirect '/' unless signed_in? && current_site
|
||||
enforce_ban if banned?
|
||||
signout if deleted?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue