Closed currymich closed 7 years ago
Confirmed, this does need to happen -
Dentists when logged in should be able to view order status and pay for their orders
Front end solved cac3728 Mostly solved with currymich/properguide-api@57cff7e
Backend basically will check if the currently logged in user is an admin (determined by checking token generated on login). If admin will return all orders and admin: "true", if not will return only the orders belonging to that dentist and admin: "false"
Frontend will then use that admin value to determine which page to route to, a dentist show page or order index
Still working out payment but they can view orders, order status and which items are in each order
Would require rewrite of login/users model to add an admin level