public share UI fix

This commit is contained in:
2025-12-13 14:29:08 +05:00
parent 378a8727e2
commit 62a13a9f45
5 changed files with 149 additions and 61 deletions

View File

@@ -223,7 +223,7 @@ def get_share_links(db: Session, map_id: UUID, current_user: User) -> List[MapSh
return links
def delete_share_link(
async def delete_share_link(
db: Session,
map_id: UUID,
link_id: UUID,
@@ -252,6 +252,10 @@ def delete_share_link(
db.delete(link)
db.commit()
# Disconnect all guest users from this map
from app.websocket.connection_manager import manager
await manager.disconnect_guests(map_id)
def get_map_by_share_token(db: Session, token: str) -> tuple[Map, SharePermission]:
"""Get map by share token (for guest access)."""