Skip to content
Snippets Groups Projects
Unverified Commit 8f13e8c3 authored by Tom Robinson's avatar Tom Robinson
Browse files

Only show collections the user has write permission to

parent 373a85f7
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,14 @@ import Query from "metabase/lib/query";
import { cancelable } from "metabase/lib/promise";
import cx from "classnames";
import _ from "underscore";
import "./SaveQuestionModal.css";
import { loadCollections } from "metabase/questions/collections";
const mapStateToProps = (state, props) => ({
collections: state.collections.collections
collections: _.filter(state.collections.collections, collection => collection.can_write)
});
const mapDispatchToProps = {
......
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