File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -394,9 +394,14 @@ def _create_private_workspace_query(
394394 .group_by (project_to_groups .c .project_uuid )
395395 ).subquery ("my_access_rights_subquery" )
396396
397+ workbench_subquery = make_workbench_subquery ()
398+
397399 private_workspace_query = (
398400 sa .select (
399401 * PROJECT_DB_COLS ,
402+ sa .func .coalesce (
403+ workbench_subquery .c .workbench , sa .text ("'{}'::json" )
404+ ).label ("workbench" ),
400405 projects_to_products .c .product_name ,
401406 projects_to_folders .c .folder_id ,
402407 )
@@ -411,6 +416,10 @@ def _create_private_workspace_query(
411416 ),
412417 isouter = True ,
413418 )
419+ .outerjoin (
420+ workbench_subquery ,
421+ workbench_subquery .c .project_uuid == projects .c .uuid ,
422+ )
414423 )
415424 .where (
416425 (projects .c .workspace_id .is_ (None )) # <-- Private workspace
You can’t perform that action at this time.
0 commit comments