Sfoglia il codice sorgente

fix: 鉴权规则修正

刘一也 3 anni fa
parent
commit
d05a8e9986

+ 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()