Phase 4 of Migration
This commit is contained in:
@@ -69,6 +69,8 @@ async def create_staff(
|
||||
db,
|
||||
data=body.model_dump(),
|
||||
current_user_role=current_user.role,
|
||||
actor_id=current_user.sub,
|
||||
actor_name=current_user.name,
|
||||
)
|
||||
|
||||
|
||||
@@ -85,6 +87,8 @@ async def update_staff(
|
||||
data=body.model_dump(exclude_unset=True),
|
||||
current_user_role=current_user.role,
|
||||
current_user_id=current_user.sub,
|
||||
actor_id=current_user.sub,
|
||||
actor_name=current_user.name,
|
||||
)
|
||||
|
||||
|
||||
@@ -100,6 +104,8 @@ async def update_staff_password(
|
||||
staff_id=staff_id,
|
||||
new_password=body.new_password,
|
||||
current_user_role=current_user.role,
|
||||
actor_id=current_user.sub,
|
||||
actor_name=current_user.name,
|
||||
)
|
||||
|
||||
|
||||
@@ -114,4 +120,6 @@ async def delete_staff(
|
||||
staff_id=staff_id,
|
||||
current_user_role=current_user.role,
|
||||
current_user_id=current_user.sub,
|
||||
actor_id=current_user.sub,
|
||||
actor_name=current_user.name,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user