Skip to content

Commit 9d30172

Browse files
🎨 allow support user to patch conversation (#8372)
1 parent 12fa12c commit 9d30172

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

services/web/server/src/simcore_service_webserver/conversations/_controller/_conversations_rest.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,11 @@ async def update_conversation(request: web.Request):
178178
if conversation.type != ConversationType.SUPPORT:
179179
raise_unsupported_type(conversation.type)
180180

181-
# Only support conversation creator can update conversation
182-
_user_group_id = await users_service.get_user_primary_group_id(
183-
request.app, user_id=req_ctx.user_id
184-
)
185-
await _conversation_service.get_conversation_for_user(
181+
await _conversation_service.get_support_conversation_for_user(
186182
app=request.app,
183+
user_id=req_ctx.user_id,
184+
product_name=req_ctx.product_name,
187185
conversation_id=path_params.conversation_id,
188-
user_group_id=_user_group_id,
189186
)
190187

191188
conversation = await conversations_service.update_conversation(

0 commit comments

Comments
 (0)