Skip to content

Commit

Permalink
fix: adjust after spa refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
amitmiran137 committed Apr 13, 2021
1 parent 2989e1d commit 2ac7224
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions superset-frontend/src/dashboard/actions/hydrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,17 @@ export const hydrateDashboard = (dashboardData, chartData, datasourcesData) => (
userId: String(user.userId), // legacy, please use state.user instead
dash_edit_perm: getPermissions('can_write', 'Dashboard', roles),
dash_save_perm: getPermissions('can_save_dash', 'Superset', roles),
dash_share_perm: getPermissions(
'can_share_dashboard',
'Superset',
roles,
),
superset_can_explore: getPermissions('can_explore', 'Superset', roles),
superset_can_share: getPermissions(
'can_share_chart',
'Superset',
roles,
),
superset_can_csv: getPermissions('can_csv', 'Superset', roles),
slice_can_edit: getPermissions('can_slice', 'Superset', roles),
common: {
Expand Down

0 comments on commit 2ac7224

Please sign in to comment.