Show effective access roles in HTML5 workspace
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user