integ-backoffice #6

Merged
v4l3n71n merged 21 commits from integ-backoffice into master 2023-11-03 20:42:25 +00:00
Showing only changes of commit 1286f0a3f2 - Show all commits

View File

@ -104,7 +104,7 @@ async def delete_users_me(current_user: Annotated[users.User, Depends(users_toke
return current_user return current_user
@router.delete("/users/groups",tags=["users"]) @router.delete("/users/groups",tags=["users"])
async def delete_users_groups(current_user: Annotated[users.User, Depends(users_token.get_current_active_user)], authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin", "User"]))], remove: bool = False, userids: list[str] = []): async def delete_users_groups(authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin"]))], remove: bool = False, userids: list[str] = []):
if len(userids) == 0: if len(userids) == 0:
raise HTTPException( raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST, status_code=status.HTTP_400_BAD_REQUEST,