Skip to content

Commit 37878f6

Browse files
fix: add accessRights when getting single function
1 parent 8a1dfe1 commit 37878f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/web/server/src/simcore_service_webserver/functions/_controller/_functions_rest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ async def get_function(request: web.Request) -> web.Response:
189189
TypeAdapter(RegisteredProjectFunctionGet).validate_python(
190190
registered_function.model_dump(mode="json")
191191
| {
192+
"access_rights": await _functions_service.get_function_user_permissions(
193+
request.app,
194+
user_id=req_ctx.user_id,
195+
product_name=req_ctx.product_name,
196+
function_id=function_id,
197+
),
192198
"thumbnail": project_dict.get("thumbnail", None),
193199
}
194200
)

0 commit comments

Comments
 (0)