mirror of
https://github.com/neocities/neocities.git
synced 2025-05-15 17:07:19 +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
|
end
|
||||||
|
|
||||||
def require_login
|
def require_login
|
||||||
redirect '/' unless signed_in?
|
redirect '/' unless signed_in? && current_site
|
||||||
enforce_ban if banned?
|
enforce_ban if banned?
|
||||||
signout if deleted?
|
signout if deleted?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue