Skip to content
Snippets Groups Projects
Unverified Commit 50421245 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Show only native databases users can use (#39167)

Fixes #39053.
parent 253e8bb4
Branches
Tags
No related merge requests found
......@@ -161,7 +161,7 @@ describe(
});
});
it.skip("users with no native write permissions should be able to choose only the databases they can query against (metabase#39053)", () => {
it("users with no native write permissions should be able to choose only the databases they can query against (metabase#39053)", () => {
cy.signIn("nosql");
startNativeQuestion();
......
......@@ -65,7 +65,8 @@ const DataSourceSelectors = ({
const databases = useMemo(() => {
const allDatabases = query
.metadata()
.databasesList({ savedQuestions: false });
.databasesList({ savedQuestions: false })
.filter(db => db.canWrite());
if (editorContext === "action") {
return allDatabases.filter(database => database.hasActionsEnabled());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment