Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 418 Bytes
;; ========================================================
;; 2.3-get-balance
;; ========================================================
(defun get-balance (userId)
"Only admin can read balance."
;; call enforce-user-auth from auth with parameter admin
;; --------------------END OF CHALLENGE -------------------
(with-read accounts-table userId
{ "balance":= balance }
balance))
You can’t perform that action at this time.