mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-14 00:32:58 +02:00
private mode implementation.
This commit is contained in:
parent
f549171ded
commit
d004ddd68f
12 changed files with 160 additions and 11 deletions
|
@ -54,6 +54,10 @@ func CanHostOnly(w http.ResponseWriter, r *http.Request) (context.Context, error
|
|||
return nil, utils.HttpForbidden("session cannot host")
|
||||
}
|
||||
|
||||
if session.PrivateModeEnabled() {
|
||||
return nil, utils.HttpUnprocessableEntity("private mode is enabled")
|
||||
}
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue