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.
This commit is contained in:
@ -569,6 +569,7 @@ class Proposal(BaseModel):
|
||||
|
||||
class Shipment(BaseModel):
|
||||
id: int
|
||||
pgroups: str
|
||||
shipment_name: str
|
||||
shipment_date: date
|
||||
shipment_status: str
|
||||
@ -583,6 +584,7 @@ class Shipment(BaseModel):
|
||||
|
||||
|
||||
class ShipmentCreate(BaseModel):
|
||||
pgroups: str
|
||||
shipment_name: str
|
||||
shipment_date: date
|
||||
shipment_status: str
|
||||
@ -597,6 +599,7 @@ class ShipmentCreate(BaseModel):
|
||||
|
||||
|
||||
class UpdateShipmentComments(BaseModel):
|
||||
pgroups: str
|
||||
comments: str
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user