wastewater-intelligence-network / win-mobile-app

0 stars 0 forks source link

Home page task should be shown based on the roles #1

Closed upperwal closed 2 years ago

upperwal commented 2 years ago

One user (after login) can have multiple roles. Say a user with the username "abhishek" can have roles as "collector" and "transporter". This means the same user can collect the sample and also scan all the samples to transport them to the lab.

Following are the roles and assigned tasks (to be displayed on the Home screen)

  1. "collector": Sample Collection and Sample List (User collecting the sample)
  2. "transporter": Sample Transport and Sample List (User transporting the sample to the testing lab)
  3. "technician": Sample Accept and Sample List (User accepting the sample in the testing lab)
  4. "admin": Sample Transport, Sample Accept and Sample List (This is a superuser that will be used to correct entities in case of errors)

Say, a user "abhishek" which have the roles of "collector" and "transporter" can perform Sample Collection, Sample Transport and view the Sample List.