forked from rDrama/rDrama
master
parent
ba5604c365
commit
40f3be00e4
|
@ -247,7 +247,7 @@ def front_all(v):
|
|||
|
||||
|
||||
|
||||
if not v and request.path == "/": return redirect("/logged_out")
|
||||
if not v and request.path == "/" and not request.headers.get("Authorization"): return redirect("/logged_out")
|
||||
|
||||
if v and "logged_out" in request.full_path: v = None
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ def submit_get(v):
|
|||
@auth_desired
|
||||
def post_id(pid, anything=None, v=None):
|
||||
|
||||
if not v and "logged_out" not in request.path: return redirect(f"/logged_out/post/{pid}")
|
||||
if not v and "logged_out" not in request.path and not request.headers.get("Authorization"): return redirect(f"/logged_out/post/{pid}")
|
||||
|
||||
if v and "logged_out" in request.full_path: v = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue