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
  • Loading branch information
John Bodley committed Jun 13, 2022
1 parent e1532f6 commit dd80f95
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 dd80f95

Please sign in to comment.