Skip to content

Commit a52e5d8

Browse files
committed
restrict user api back to admin only
1 parent 39db13b commit a52e5d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/app/routes/user.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ async def create_user(
4444
async def get_users(
4545
admin: Optional[bool] = Query(False, description="If true, returns admin users only"),
4646
user_service: UserService = Depends(get_user_service),
47-
# authorized: bool = has_roles([UserRole.ADMIN]),
48-
authorized: bool = True,
47+
authorized: bool = has_roles([UserRole.ADMIN]),
4948
):
5049
try:
5150
if admin:

0 commit comments

Comments
 (0)