Skip to content

Commit

Permalink
feat: Add user info to sqllab via bootstrap data (apache#11760)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored and auxten committed Nov 20, 2020
1 parent bcc4711 commit 4d74d31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2729,6 +2729,8 @@ def sqllab(self) -> FlaskResponse:
payload["requested_query"] = json.loads(form_data)
except json.JSONDecodeError:
pass

payload["user"] = bootstrap_user_data(g.user)
bootstrap_data = json.dumps(
payload, default=utils.pessimistic_json_iso_dttm_ser
)
Expand Down

0 comments on commit 4d74d31

Please sign in to comment.