fix(项目设置): 修复移除项目成员没有日志的缺陷
--bug=1026441 --user=王孝刚 【系统设置】-【系统】-操作日志没有记录项目成员移除的相关日志 https://www.tapd.cn/55049933/s/1379212
This commit is contained in:
parent
43bebb1c73
commit
d6742c29ff
|
@ -25,12 +25,12 @@ import io.metersphere.service.BaseCheckPermissionService;
|
|||
import io.metersphere.service.BaseProjectService;
|
||||
import io.metersphere.service.BaseUserService;
|
||||
import io.metersphere.service.ProjectService;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.Logical;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import jakarta.annotation.Resource;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -125,6 +125,7 @@ public class ProjectController {
|
|||
}
|
||||
|
||||
@GetMapping("/member/delete/{projectId}/{userId}")
|
||||
@MsRequestLog(module = OperLogModule.PROJECT_PROJECT_MEMBER)
|
||||
public void deleteProjectMember(@PathVariable String projectId, @PathVariable String userId) {
|
||||
String currentUserId = SessionUtils.getUser().getId();
|
||||
if (StringUtils.equals(userId, currentUserId)) {
|
||||
|
|
Loading…
Reference in New Issue