Skip to content

Instantly share code, notes, and snippets.

View tmaclean-LV's full-sized avatar

Thomas MacLean tmaclean-LV

  • LearnVest
  • New York, NY
View GitHub Profile
@tmaclean-LV
tmaclean-LV / index.js
Last active September 23, 2021 14:16
Control user access to models in Keystone.js
// Place this with the other middleware inclusion in routes/index.js
keystone.pre('admin', middleware.enforcePermissions);