Procházet zdrojové kódy

fix: 修改了认证

xuxiaopang před 2 roky
rodič
revize
fcf0a71c1c

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

@@ -128,7 +128,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
                 .antMatchers(GET, "/project/members").access("@authTools.checkProjOwnershipParam(request)")
                 .antMatchers(GET, "/project/{projectId}").authenticated()
                 .antMatchers(POST, "/project/create").authenticated()
-                .antMatchers(POST, "/project/members").access("@authTools.checkProjOwnershipParam(request)")
+                .antMatchers(POST, "/project/members").authenticated()
                 .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)")