Kaynağa Gözat

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

xuxiaopang 2 yıl önce
ebeveyn
işleme
e97659fcd3

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