Skip to content

Commit

Permalink
fix: remove info from datasource access error
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Jul 3, 2024
1 parent 35da6ac commit 2bb3433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/security/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def get_datasource_access_error_msg(datasource: "BaseDatasource") -> str:
"""

return (
f"This endpoint requires the datasource {datasource.name}, "
f"This endpoint requires the datasource {datasource.id}, "
"database or `all_datasource_access` permission"
)

Expand Down Expand Up @@ -612,7 +612,7 @@ def get_datasource_access_error_object( # pylint: disable=invalid-name
level=ErrorLevel.WARNING,
extra={
"link": self.get_datasource_access_link(datasource),
"datasource": datasource.name,
"datasource": datasource.id,
},
)

Expand Down

0 comments on commit 2bb3433

Please sign in to comment.