mirror of
https://github.com/neocities/neocities.git
synced 2025-05-28 15:11:15 +02:00
add logic for tutorial requirement
This commit is contained in:
parent
01aab733bb
commit
2ff8365651
9 changed files with 32 additions and 9 deletions
|
@ -16,6 +16,7 @@ end
|
|||
|
||||
def require_login
|
||||
redirect '/' unless signed_in? && current_site
|
||||
redirect '/tutorial/html/1' if current_site.tutorial_required && !(request.path =~ /tutorial/)
|
||||
end
|
||||
|
||||
def signed_in?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue