"""The one place where subscription limits will be checked. Today there are no limits. The checks are called where a limit will matter, so that a plan can be added without touching the callers. Target model (see the entitlements blueprint): the quota subject is the owner of a room, a main user, like the club at Shinkan. A plan, set by the operator, may later cap the number of active employees per main user and per room. The count comes from the database, never from the client. """ from __future__ import annotations from uuid import UUID def ensure_can_create_room(conn, owner_id: UUID) -> None: """Called before a main user creates a room.""" del conn, owner_id def ensure_can_add_member(conn, owner_id: UUID, room_id: UUID) -> None: """Called before a person becomes an active member of a room or is invited to it. ``owner_id`` is the owner of the room, the future quota subject. """ del conn, owner_id, room_id