Reputation: 691
So, when we create a Mean.js app using the yo generator, there's a User module by default, that manages authentication, sign up, sign in, profile settings, etc. We also have the option to add roles to the users in the users model, admin and user roles are set by default. Users can self register to the app by default, now let's say I want to use the admin user to do CRUD ops on Users (create, read, update, delete new users, and make queries such as list users) and disable the sign up option for common users so only the admin can register new users.
I thought about two options:
What would you suggest?
Upvotes: 0
Views: 554
Reputation: 2078
Mean.js 0.4.0 is the most recent version and it will have an admin module incorporated in a near future. I implemented one in my app similar to the one in this pull request. Take a look and see if it works for you.
Upvotes: 1