2222async def create_user_data (
2323 user_data : UserDataCreateRequest ,
2424 user_data_service : UserDataService = Depends (get_user_data_service ),
25- authorized : bool = has_roles (
26- [UserRole .ADMIN , UserRole .PARTICIPANT , UserRole .VOLUNTEER ]
27- ),
25+ authorized : bool = has_roles ([UserRole .ADMIN , UserRole .PARTICIPANT , UserRole .VOLUNTEER ]),
2826):
2927 """Create user data for intake form"""
3028 try :
@@ -39,9 +37,7 @@ async def create_user_data(
3937async def get_user_data_by_user_id (
4038 user_id : UUID ,
4139 user_data_service : UserDataService = Depends (get_user_data_service ),
42- authorized : bool = has_roles (
43- [UserRole .ADMIN , UserRole .PARTICIPANT , UserRole .VOLUNTEER ]
44- ),
40+ authorized : bool = has_roles ([UserRole .ADMIN , UserRole .PARTICIPANT , UserRole .VOLUNTEER ]),
4541):
4642 """Get user data by user ID"""
4743 try :
@@ -72,9 +68,7 @@ async def update_user_data_by_user_id(
7268 user_id : UUID ,
7369 user_data : UserDataUpdateRequest ,
7470 user_data_service : UserDataService = Depends (get_user_data_service ),
75- authorized : bool = has_roles (
76- [UserRole .ADMIN , UserRole .PARTICIPANT , UserRole .VOLUNTEER ]
77- ),
71+ authorized : bool = has_roles ([UserRole .ADMIN , UserRole .PARTICIPANT , UserRole .VOLUNTEER ]),
7872):
7973 """Update user data by user ID"""
8074 try :
0 commit comments