keystonejs / keystone-classic

Node.js CMS and web app framework
http://v4.keystonejs.com
MIT License
14.65k stars 2.21k forks source link

only admin can add new users #4933

Closed aniaska4 closed 5 years ago

aniaska4 commented 5 years ago

If the user is "this.isAdmin" I would like to show the "User" List in Admin UI, If not, the "User" list should not be shown. ==> Only the Admin should have access to User List

How should one implement that?

gautamsi commented 5 years ago

This version of KeystoneJS is not designed to handle this. Based on user.isAdmin you can prevent anyone to connect to Admin UI, but you can not selectively hide list(s) or field(s) in the Admin Ui.

next version has this features, next version is still in alpha and not stable for production use yet.