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:
@ -284,6 +284,7 @@ specific_dewars3 = [dewar for dewar in dewars if dewar.id in specific_dewar_ids3
|
||||
shipments = [
|
||||
Shipment(
|
||||
id=1,
|
||||
pgroups="p20001, p20003",
|
||||
shipment_date=datetime.strptime("2024-10-10", "%Y-%m-%d"),
|
||||
shipment_name="Shipment from Mordor",
|
||||
shipment_status="Delivered",
|
||||
@ -295,6 +296,7 @@ shipments = [
|
||||
),
|
||||
Shipment(
|
||||
id=2,
|
||||
pgroups="p20001, p20002",
|
||||
shipment_date=datetime.strptime("2024-10-24", "%Y-%m-%d"),
|
||||
shipment_name="Shipment from Mordor",
|
||||
shipment_status="In Transit",
|
||||
@ -306,6 +308,7 @@ shipments = [
|
||||
),
|
||||
Shipment(
|
||||
id=3,
|
||||
pgroups="p20004",
|
||||
shipment_date=datetime.strptime("2024-10-28", "%Y-%m-%d"),
|
||||
shipment_name="Shipment from Mordor",
|
||||
shipment_status="In Transit",
|
||||
|
Reference in New Issue
Block a user