Commit f49133f4 by hweeeeeei

添加或修改会话拓展字段 权限:所有client都权限操作

parent 65806d54
...@@ -52,7 +52,7 @@ public class ImConversationController extends BaseController { ...@@ -52,7 +52,7 @@ public class ImConversationController extends BaseController {
* 添加或修改会话拓展字段 * 添加或修改会话拓展字段
*/ */
@PostMapping("/saveOrUpdateAttr") @PostMapping("/saveOrUpdateAttr")
@ApiOperation(value = "添加或修改会话拓展字段", notes = "权限:目前只有创建者有权限操作") @ApiOperation(value = "添加或修改会话拓展字段", notes = "权限:所有client都权限操作")
public ApiResult<Boolean> saveOrUpdateAttr(@RequestBody ImConversationAttrUpdate imConversationAttrUpdate) throws Exception { public ApiResult<Boolean> saveOrUpdateAttr(@RequestBody ImConversationAttrUpdate imConversationAttrUpdate) throws Exception {
return imConversationService.saveOrUpdateAttr(imConversationAttrUpdate); return imConversationService.saveOrUpdateAttr(imConversationAttrUpdate);
} }
......
...@@ -673,11 +673,11 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap ...@@ -673,11 +673,11 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
ImClient imClientSender = imClientService.getCurentClient(); ImClient imClientSender = imClientService.getCurentClient();
// 判断是否为群主
ImConversation imConversationById = imConversationService.getById(imConversationAttrUpdate.getConversationId()); ImConversation imConversationById = imConversationService.getById(imConversationAttrUpdate.getConversationId());
if (imConversationById == null || !imConversationById.getCreator().equals(imClientSender.getId())) { // 判断是否为群主
return ApiResult.result(false); // if (imConversationById == null || !imConversationById.getCreator().equals(imClientSender.getId())) {
} // return ApiResult.result(false);
// }
// 查询该会话所有成员 // 查询该会话所有成员
List<ImConversationMembers> membersList = imConversationMembersService.list( List<ImConversationMembers> membersList = imConversationMembersService.list(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment