Show effective access roles in HTML5 workspace
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-21 19:40:12 +03:00
parent 87236606d1
commit 5f066d2f6b
5 changed files with 76 additions and 3 deletions
@@ -61,6 +61,7 @@ from api_server.html5_access_controller import (
html5_access_profile_preview as _html5_access_profile_preview,
html5_access_publish_dry_run as _html5_access_publish_dry_run,
html5_access_publish_plan as _html5_access_publish_plan,
html5_access_user_detail as _html5_access_user_detail,
)
from api_server.html5_editor_controller import (
html5_editor_page as _html5_editor_page,
@@ -1606,6 +1607,17 @@ async def html5_project_access_profile_publish_dry_run(project_id: str, profile_
)
@app.get("/html5/projects/{project_id}/access/users/{user_name}")
async def html5_project_access_user(project_id: str, user_name: str) -> Response:
return _html5_response(
await _html5_access_user_detail(
project_id=project_id,
user_name=user_name,
access_user=get_project_access_user,
)
)
@app.post("/html5/projects/{project_id}/forms/editor/preview")
async def html5_project_form_editor_preview(project_id: str, request: Request) -> Response:
form = await _html5_form_data(request)