Show effective access roles in HTML5 workspace
This commit is contained in:
@@ -11,6 +11,7 @@ from api_server.html5_access import (
|
||||
render_html5_access_profile_preview,
|
||||
render_html5_access_publish_plan,
|
||||
render_html5_access_publish_result,
|
||||
render_html5_access_user_detail,
|
||||
)
|
||||
from api_server.html5_forms import form_value, html5_csv_values
|
||||
|
||||
@@ -106,6 +107,15 @@ async def html5_access_profile_apply(
|
||||
return render_html5_access_profile_apply_result(project_id=project_id, response=response, plan=plan)
|
||||
|
||||
|
||||
async def html5_access_user_detail(
|
||||
*,
|
||||
project_id: str,
|
||||
user_name: str,
|
||||
access_user: Callable[[str, str], Awaitable[dict]],
|
||||
) -> str:
|
||||
return render_html5_access_user_detail(project_id=project_id, user_payload=await access_user(project_id, user_name))
|
||||
|
||||
|
||||
def _selected_profile(
|
||||
normalized: object,
|
||||
profile_name: str | None,
|
||||
|
||||
Reference in New Issue
Block a user