diff --git a/src/metabase/api/collection.clj b/src/metabase/api/collection.clj index 2eaa6f1fbb991ac341401b374e4b8b67808c43c3..6806b2a2416a44ef9455c7408795bb3eb7ddb480 100644 --- a/src/metabase/api/collection.clj +++ b/src/metabase/api/collection.clj @@ -1115,6 +1115,7 @@ [include archived] {include [:maybe [:= "events"]] archived [:maybe :boolean]} + (api/read-check collection/root-collection) (timeline/timelines-for-collection nil {:timeline/events? (= include "events") :timeline/archived? archived})) @@ -1124,6 +1125,7 @@ {id ms/PositiveInt include [:maybe [:= "events"]] archived [:maybe :boolean]} + (api/read-check (t2/select-one :model/Collection :id id)) (timeline/timelines-for-collection id {:timeline/events? (= include "events") :timeline/archived? archived}))