Admins: People from kois team such as Ajeng, Elaine who would be doing the actual data entry. They would have complete edit access
Makers: They should be able to edit only their name, and what products they want to sell, and request routes
Retailers: They should be able to edit their name, and what products they would like to sell, and request routes.
Couriers: Should be able to edit their name, location, itinerary, weight allowance
The hard part here is linking a specific maker/retailer/courier to a user. Perhaps we could add a "type" field to the user collection, and then move all the fields for maker/retailer/courier there?
Generally, we should have 3 types of users:
- **Admins**: People from kois team such as Ajeng, Elaine who would be doing the actual data entry. They would have complete edit access
- **Makers**: They should be able to edit only their name, and what products they want to sell, and request routes
- **Retailers**: They should be able to edit their name, and what products they would like to sell, and request routes.
- **Couriers**: Should be able to edit their name, location, itinerary, weight allowance
The hard part here is linking a specific maker/retailer/courier to a user. Perhaps we could add a "type" field to the user collection, and then move all the fields for maker/retailer/courier there?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Relevant: https://payloadcms.com/blog/build-your-own-rbac
Generally, we should have 3 types of users:
The hard part here is linking a specific maker/retailer/courier to a user. Perhaps we could add a "type" field to the user collection, and then move all the fields for maker/retailer/courier there?