mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(dashboard): user id can be null when there is an anonymous user (#15592)
This commit is contained in:
committed by
GitHub
parent
b72fd7b9f4
commit
23072161e2
@@ -335,7 +335,7 @@ export const hydrateDashboard = (dashboardData, chartData) => (
|
||||
dashboardInfo: {
|
||||
...dashboardData,
|
||||
metadata,
|
||||
userId: String(user.userId), // legacy, please use state.user instead
|
||||
userId: user.userId ? String(user.userId) : null, // legacy, please use state.user instead
|
||||
dash_edit_perm: canEdit,
|
||||
dash_save_perm: findPermission('can_save_dash', 'Superset', roles),
|
||||
dash_share_perm: findPermission(
|
||||
|
||||
Reference in New Issue
Block a user