Skip to content
Snippets Groups Projects
Commit 1c715164 authored by Cam Saul's avatar Cam Saul
Browse files

fix typo

parent a3314aef
No related merge requests found
......@@ -20,7 +20,7 @@
(invoke [this k]
(get this k))
IModelInstanceApiSerialze
IModelInstanceApiSerialize
(api-serialize [this]
;; If current user isn't an admin strip out DB details which may include things like password
(cond-> this
......
(ns metabase.models.interface)
(defprotocol IModelInstanceApiSerialze
(defprotocol IModelInstanceApiSerialize
(api-serialize [this]
"Called on all objects being written out by the API. Default implementations return THIS as-is, but models can provide
custom methods to strip sensitive data, from non-admins, etc."))
(extend-protocol IModelInstanceApiSerialze
(extend-protocol IModelInstanceApiSerialize
Object
(api-serialize [this]
this)
......
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