소스 검색

fix: 鉴权规则修正

刘一也 3 년 전
부모
커밋
d05a8e9986
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      web/src/main/java/cn/seecoder/web/infrastructure/config/WebSecurityConfig.java

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

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