mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-04 01:48:54 +03:00
consider anonymous user authenticated
This commit is contained in:
+1
-1
@@ -151,7 +151,7 @@ def _is_authenticated(request: Request) -> bool:
|
|||||||
Port 5000 internal requests are considered anonymous despite having admin role.
|
Port 5000 internal requests are considered anonymous despite having admin role.
|
||||||
"""
|
"""
|
||||||
username = request.headers.get("remote-user")
|
username = request.headers.get("remote-user")
|
||||||
return username is not None and username != "anonymous"
|
return username is not None
|
||||||
|
|
||||||
|
|
||||||
def allow_public():
|
def allow_public():
|
||||||
|
|||||||
Reference in New Issue
Block a user