Skip to content
Snippets Groups Projects
Unverified Commit f7d8cb31 authored by Alexander Lesnenko's avatar Alexander Lesnenko Committed by GitHub
Browse files

fix permissions diff shows saved questions (#23010)

parent 920ff323
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ import _ from "underscore";
import { State } from "metabase-types/store";
import Groups from "metabase/entities/groups";
import { diffDataPermissions } from "metabase/admin/permissions/utils/graph";
import { isVirtualCardId } from "metabase/lib/saved-questions/saved-questions";
import { Group } from "metabase-types/api";
const getDatabasesWithTables = createSelector(
......@@ -17,7 +18,7 @@ const getDatabasesWithTables = createSelector(
return databasesList.map(database => {
const databaseTables = tablesList.filter(
table => table.db_id === database.id,
table => table.db_id === database.id && !isVirtualCardId(table.id),
);
return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment