Modifying the user backend

The user backend logic needs to change a little to fit our needs. For example, we need roles for our users. We will detail this when we talk about the user model. We must add authorization policies. We also need a profile for our users.

Modifying the user model

We need to make a few changes to the user model in order to support multiple account types and eventually assign roles to users. This will tell us whether the user is registered for a simple account, where they can define a profile with work experience, or to create a company that wants to post job opportunities.

The roles are going to define what actions the user can perform. For example, for a company we can have a company owner that has full control over the account, ...

Get MEAN Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.