Skip to content

Commit

Permalink
org name needs to be in quotes otherwise its treated as a column and …
Browse files Browse the repository at this point in the history
…an error is thrown
  • Loading branch information
Ishankoradia committed Nov 10, 2023
1 parent c58b688 commit e03085a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddpui/api/client/superset_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def post_fetch_embed_token(request, dashboard_uuid): # pylint: disable=unused-a
"last_name": credentials["last_name"],
},
"resources": [{"type": "dashboard", "id": dashboard_uuid}],
"rls": [{"clause": f"org={orguser.org.slug}"}],
"rls": [{"clause": f"org='{orguser.org.slug}'"}],
},
headers={
"Authorization": f"Bearer {access_token}",
Expand Down

0 comments on commit e03085a

Please sign in to comment.