The admin-user-roles-permissions
has basic support for handling user permissions in the Keystone admin area.
It is comprised of basic parts:
-
Additional fields on the user model (mentioned in steps below and also the User.js file)
isUserAdmin
,isSuperAdmin
andisPWD
(the last one has permissions to edit any other user always)- Simply, each user has the ability to edit self and all users with fewer permissions.
-
Exposure of these values (via virtuals) to the React
admin/src/views/item.js
route and to the server side jade templates and express routes.