Almost usable admin panel

This commit is contained in:
Leo Vasanko
2025-08-29 21:54:51 -06:00
parent efdfa77fc9
commit 4db7f2e9a6
7 changed files with 713 additions and 77 deletions

View File

@@ -205,6 +205,10 @@ class DatabaseInterface(ABC):
async def get_organization_users(self, org_id: str) -> list[tuple[User, str]]:
"""Get all users in an organization with their roles."""
@abstractmethod
async def get_roles_by_organization(self, org_id: str) -> list[Role]:
"""List roles belonging to an organization."""
@abstractmethod
async def get_user_role_in_organization(
self, user_uuid: UUID, org_id: str