mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
fix(dashboard): don't show report modal for anonymous user (#17106)
* Added sunburst echart * fix(dashboard):Hide reports modal for anonymous users * Address comments * Make prettier happy Co-authored-by: Mayur <mayurp@kpmg.com>
This commit is contained in:
@@ -227,7 +227,7 @@ export class ExploreChartHeader extends React.PureComponent {
|
||||
return false;
|
||||
}
|
||||
const { user } = this.props;
|
||||
if (!user) {
|
||||
if (!user?.userId) {
|
||||
// this is in the case that there is an anonymous user.
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user