mirror of
https://github.com/neocities/neocities.git
synced 2025-05-21 03:39:37 +02:00
implement education version of Neocities
This commit is contained in:
parent
c5d62b19a3
commit
977ba19610
12 changed files with 91 additions and 49 deletions
|
@ -15,6 +15,10 @@ def csrf_token
|
|||
session[:_csrf_token] ||= SecureRandom.base64(32)
|
||||
end
|
||||
|
||||
def is_education?
|
||||
current_site && current_site.is_education
|
||||
end
|
||||
|
||||
def require_login
|
||||
redirect '/' unless signed_in?
|
||||
if session[:banned] || current_site.is_banned || parent_site.is_banned
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue