refactor: Remove testme comment
This commit is contained in:
parent
8a72de8f86
commit
d6e2bd132b
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ async def add_user_to_role(user_id: UUID, role_id: UUID, owner_id: UUID):
|
||||||
raise UserNotFoundError
|
raise UserNotFoundError
|
||||||
elif not role:
|
elif not role:
|
||||||
raise RoleNotFoundError
|
raise RoleNotFoundError
|
||||||
elif role.tenant_id not in [tenant.id for tenant in user_tenants]: # TESTME
|
elif role.tenant_id not in [tenant.id for tenant in user_tenants]:
|
||||||
raise TenantNotFoundError(
|
raise TenantNotFoundError(
|
||||||
message="User tenant does not match role tenant. User cannot be added to role."
|
message="User tenant does not match role tenant. User cannot be added to role."
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue