Skip to content

Instantly share code, notes, and snippets.

View justinwen's full-sized avatar

Justin Wen justinwen

View GitHub Profile
@justinwen
justinwen / index.js
Created August 10, 2019 16:21 — forked from tmaclean-LV/index.js
Control user access to models in Keystone.js
// Place this with the other middleware inclusion in routes/index.js
keystone.pre('admin', middleware.enforcePermissions);