Integrate `pgroups` for shipment data security
Added `pgroups` to secure and associate data with specific permission groups. Updated backend routers, database models, and API endpoints to handle authorization based on `pgroups`. Adjusted frontend components and hooks to support `pgroups` in data fetching and management workflows.
Showing
- backend/app/data/data.py 3 additions, 0 deletionsbackend/app/data/data.py
- backend/app/models.py 5 additions, 4 deletionsbackend/app/models.py
- backend/app/routers/__init__.py 1 addition, 1 deletionbackend/app/routers/__init__.py
- backend/app/routers/protected_router.py 4 additions, 0 deletionsbackend/app/routers/protected_router.py
- backend/app/routers/shipment.py 37 additions, 29 deletionsbackend/app/routers/shipment.py
- backend/app/schemas.py 3 additions, 0 deletionsbackend/app/schemas.py
- backend/main.py 0 additions, 2 deletionsbackend/main.py
- frontend/src/App.tsx 1 addition, 1 deletionfrontend/src/App.tsx
- frontend/src/components/DewarDetails.tsx 41 additions, 33 deletionsfrontend/src/components/DewarDetails.tsx
- frontend/src/components/ShipmentDetails.tsx 7 additions, 3 deletionsfrontend/src/components/ShipmentDetails.tsx
- frontend/src/components/ShipmentForm.tsx 2 additions, 4 deletionsfrontend/src/components/ShipmentForm.tsx
- frontend/src/components/ShipmentPanel.tsx 1 addition, 1 deletionfrontend/src/components/ShipmentPanel.tsx
- frontend/src/hooks/useShipments.tsx 8 additions, 6 deletionsfrontend/src/hooks/useShipments.tsx
- frontend/src/pages/ShipmentView.tsx 10 additions, 8 deletionsfrontend/src/pages/ShipmentView.tsx
Loading
Please register or sign in to comment