Skip to content

Instantly share code, notes, and snippets.

@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);