tests: improved coverage
This commit is contained in:
parent
c8024daa97
commit
f600664789
5 changed files with 178 additions and 11 deletions
|
|
@ -88,7 +88,7 @@ async def get_group_permissions(group_model: group_model_query_dependency, org_m
|
|||
@router.get("/group/users", response_model=IAMGetGroupUsersResponse)
|
||||
async def get_group_users(group_model: group_model_query_dependency, org_model: org_model_root_claim_query_dependency):
|
||||
if group_model.org_id != org_model.id:
|
||||
raise UnauthorizedException("User does not belong to this organization")
|
||||
raise UnauthorizedException("Group does not belong to this organization")
|
||||
return {"users": group_model.user_rel}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue