Custom user type

Sometimes you might have users with different roles. Your app has to provide different views and functionality based on the current user.

For example: In a project team there are team members and managers:

  • Everyone can create an issue, but only a manager can assign an issue to someone else.
  • Team members can only read issues assigned to them, while managers can view all issues.
  • An issue has a few protected fields which can only be modified by a manager.
  • Everyone can write comments, but a manager can also write manager reviews.
Normal user
Manager

How to build

  1. Add a new user model
  2. Add additional relationships to other data models
  3. Define which users have access to which pages
  4. Define how users can modify data on each page
Add a new user model
Add relationships
Define which users have access to which pages
Define how users can modify data on each page