Skip to content

Commit

Permalink
fix(VERSIONED_EXPORTS): Ensure dashboards and charts adher to the VER…
Browse files Browse the repository at this point in the history
…SIONED_EXPORTS feature flag (#20368)

Co-authored-by: John Bodley <[email protected]>
  • Loading branch information
john-bodley and John Bodley authored Jun 14, 2022
1 parent 5a13782 commit c3fdd52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ function DashboardList(props: DashboardListProps) {
const canCreate = hasPerm('can_write');
const canEdit = hasPerm('can_write');
const canDelete = hasPerm('can_write');
const canExport = hasPerm('can_export');
const canExport =
hasPerm('can_export') && isFeatureEnabled(FeatureFlag.VERSIONED_EXPORT);

const initialSort = [{ id: 'changed_on_delta_humanized', desc: true }];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ const DatasetList: FunctionComponent<DatasetListProps> = ({
const canEdit = hasPerm('can_write');
const canDelete = hasPerm('can_write');
const canCreate = hasPerm('can_write');
const canExport = hasPerm('can_export');
const canExport =
hasPerm('can_export') && isFeatureEnabled(FeatureFlag.VERSIONED_EXPORT);

const initialSort = SORT_BY;

Expand Down

0 comments on commit c3fdd52

Please sign in to comment.