mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
fix(log): log endpoint authentication (#10435)
* fix(log): log crashes if expired or not authenticated * add auth to log endpoint
This commit is contained in:
committed by
GitHub
parent
473fe1003a
commit
0aad9c6f48
@@ -42,7 +42,7 @@ class AbstractEventLogger(ABC):
|
||||
@functools.wraps(f)
|
||||
def wrapper(*args: Any, **kwargs: Any) -> Any:
|
||||
user_id = None
|
||||
if g.user:
|
||||
if hasattr(g, "user") and g.user:
|
||||
user_id = g.user.get_id()
|
||||
payload = request.form.to_dict() or {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user