소스 검색

fix: 修改了/project/{id}接口的认证方式

xuxiaopang 2 년 전
부모
커밋
e97659fcd3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/src/main/java/cn/seecoder/web/infrastructure/config/WebSecurityConfig.java

+ 1 - 1
web/src/main/java/cn/seecoder/web/infrastructure/config/WebSecurityConfig.java

@@ -126,7 +126,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
                 // Project Controller
                 .antMatchers(GET, "/project/listByUser").authenticated()
                 .antMatchers(GET, "/project/members").access("@authTools.checkProjOwnershipParam(request)")
-                .antMatchers(GET, "/project/{projectId}").access("@authTools.getProjectValidator(#projectId)")
+                .antMatchers(GET, "/project/{projectId}").authenticated()
                 .antMatchers(POST, "/project/create").authenticated()
                 .antMatchers(POST, "/project/members").access("@authTools.checkProjOwnershipParam(request)")
                 .antMatchers(POST, "/project/members/add").access("@authTools.checkProjOwnershipParam(request)")