Commit graph

16 commits

Author SHA1 Message Date
Simon Goller
d48c97edac Introduce is_paid attribute to SalesUser 2024-06-19 09:59:14 +02:00
Simon Goller
eb54665596 Add background color to sales person 2024-06-18 06:27:29 +02:00
Simon Goller
b4b926a8e4 Adjust shift plan based on authentication 2024-06-14 13:23:12 +02:00
Simon Goller
e1f9936b62 Add REST endpoint to find bookings per week 2024-06-12 07:38:51 +02:00
Simon Goller
91559224e5 Fix clippy findings 2024-06-06 08:08:30 +02:00
Simon Goller
ed609cf06c Cargo clippy and cargo fmt 2024-05-09 15:00:50 +02:00
Simon Goller
b0000c0117 Wrap Context with Autentication enum
Context should contain information which is required to get
the information if the service call is authenticated.  Context
could be the username for example.  But services call other
services internally and for this, authentication must not be
checked.  In this case, they can now pass Authentication::Full
which always successfully authenticates.
2024-05-09 14:58:19 +02:00
Simon Goller
e3ec694876 Add checks for booking and fix database timestamps 2024-05-09 09:45:53 +02:00
Simon Goller
bc8a534353 Add id check for booking
It now checks if sales_person_id and slot_id actually exists.
2024-05-09 08:11:38 +02:00
Simon Goller
71c1432fd1 Add booking dao implementations 2024-05-07 18:19:00 +02:00
Simon Goller
4bca60a23c Implement booking service without validity checks 2024-05-07 08:31:50 +02:00
Simon Goller
ad88a1c983 Add service for sales_persond 2024-05-06 13:33:54 +02:00
Simon Goller
20828fb4a1 Add context reqruied later for authentication 2024-05-03 19:01:26 +02:00
Simon Goller
9a367c9260 Move the error type test functions into its own module 2024-05-03 06:42:45 +02:00
Simon Goller
8f378472ea Add REST endpoint for slot 2024-05-02 23:25:04 +02:00
Simon Goller
82e89baeeb Restructuring: Move permission code in separate modules 2024-04-30 15:06:12 +02:00