   [dashboards]
   (let [favorite-dashboard-ids (when (seq dashboards)
                                  (db/select-field :dashboard_id DashboardFavorite
-                                   :user_id      *current-user-id*
+                                   :user_id      api/*current-user-id*
                                    :dashboard_id [:in (set (map u/get-id dashboards))]))]
     (for [dashboard dashboards]
       (assoc dashboard

            [metabase.models
             [card :refer [Card]]
             [dashboard :as dashboard :refer [Dashboard]]
             [dashboard-favorite :refer [DashboardFavorite]]
             [dashboard-card :refer [create-dashboard-card! DashboardCard delete-dashboard-card! update-dashboard-card!]]
             [interface :as mi]
             [revision :as revision]]
            [metabase.util.schema :as su]

(ns metabase.api.dashboard
  "/api/dashboard endpoints."
  (:require [clojure.tools.logging :as log]
            [compojure.core :refer [DELETE GET POST PUT]]
            [metabase
             [events :as events]
             [util :as u]]
