xuxiaopang преди 2 години
родител
ревизия
fcf0a71c1c
променени са 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

@@ -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)")