|
@@ -70,13 +70,14 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
.antMatchers(HttpMethod.GET, "/test/latest/{testId}").access("@authTools.checkTestOwnership(#testId)")
|
|
.antMatchers(HttpMethod.GET, "/test/latest/{testId}").access("@authTools.checkTestOwnership(#testId)")
|
|
|
.antMatchers(HttpMethod.POST, "/test/create").authenticated()
|
|
.antMatchers(HttpMethod.POST, "/test/create").authenticated()
|
|
|
// Auto Test Controller
|
|
// Auto Test Controller
|
|
|
- .antMatchers(HttpMethod.GET, "/auto_test/list/{projectId}").access("@authTools.checkProjOwnership(#projectId)")
|
|
|
|
|
|
|
+ .antMatchers(HttpMethod.GET, "/auto_test/list").access("@authTools.checkProjOwnershipParam(request)")
|
|
|
// Bug List Controller
|
|
// Bug List Controller
|
|
|
.antMatchers(HttpMethod.GET, "/bug_list/list").access("@authTools.checkProjOwnershipParam(request)")
|
|
.antMatchers(HttpMethod.GET, "/bug_list/list").access("@authTools.checkProjOwnershipParam(request)")
|
|
|
.antMatchers(HttpMethod.POST, "/bug_list").authenticated()
|
|
.antMatchers(HttpMethod.POST, "/bug_list").authenticated()
|
|
|
.antMatchers(HttpMethod.PUT, "/bug_list").access("@authTools.checkBugOwnershipBody(request)")
|
|
.antMatchers(HttpMethod.PUT, "/bug_list").access("@authTools.checkBugOwnershipBody(request)")
|
|
|
// Func Test Controller
|
|
// Func Test Controller
|
|
|
.antMatchers(HttpMethod.GET, "/func_test").access("@authTools.checkProjOwnershipParam(request)")
|
|
.antMatchers(HttpMethod.GET, "/func_test").access("@authTools.checkProjOwnershipParam(request)")
|
|
|
|
|
+ .antMatchers(HttpMethod.GET, "/func_test/taskList").access("@authTools.checkProjOwnershipParam(request)")
|
|
|
.antMatchers(HttpMethod.GET, "/func_test/steps").access("@authTools.checkTestCaseOwnershipParam(request)")
|
|
.antMatchers(HttpMethod.GET, "/func_test/steps").access("@authTools.checkTestCaseOwnershipParam(request)")
|
|
|
.antMatchers(HttpMethod.POST, "/func_test").access("@authTools.checkProjOwnershipParam(request)")
|
|
.antMatchers(HttpMethod.POST, "/func_test").access("@authTools.checkProjOwnershipParam(request)")
|
|
|
.antMatchers(HttpMethod.POST, "/func_test/steps").access("@authTools.checkTestCaseOwnershipParam(request)")
|
|
.antMatchers(HttpMethod.POST, "/func_test/steps").access("@authTools.checkTestCaseOwnershipParam(request)")
|
|
@@ -89,8 +90,9 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
.antMatchers(HttpMethod.DELETE, "/func_test/steps").access("@authTools.checkTestStepOwnershipParam(request)")
|
|
.antMatchers(HttpMethod.DELETE, "/func_test/steps").access("@authTools.checkTestStepOwnershipParam(request)")
|
|
|
.antMatchers(HttpMethod.DELETE, "/func_test").access("@authTools.checkTestCaseOwnershipParam(request)")
|
|
.antMatchers(HttpMethod.DELETE, "/func_test").access("@authTools.checkTestCaseOwnershipParam(request)")
|
|
|
// Commit Controller
|
|
// Commit Controller
|
|
|
- .antMatchers("/commits/tree").access("@authTools.checkTreeNodeOwnershipParam(request)")
|
|
|
|
|
- .antMatchers("/commits/bug_list").access("@authTools.checkBugOwnershipParam(request)")
|
|
|
|
|
|
|
+ .antMatchers(HttpMethod.GET, "/commits/tree").access("@authTools.checkTreeNodeOwnershipParam(request)")
|
|
|
|
|
+ .antMatchers(HttpMethod.GET, "/commits/bug_list").access("@authTools.checkBugOwnershipParam(request)")
|
|
|
|
|
+ .antMatchers(HttpMethod.GET, "/commits/list").access("@authTools.checkProjOwnershipParam(reuqest)")
|
|
|
// Deployment Controller
|
|
// Deployment Controller
|
|
|
.antMatchers(HttpMethod.GET, "/deployments/list").access("@authTools.checkProjOwnershipParam(request)")
|
|
.antMatchers(HttpMethod.GET, "/deployments/list").access("@authTools.checkProjOwnershipParam(request)")
|
|
|
.antMatchers(HttpMethod.GET, "/deployments/log").access("@authTools.checkProjPipelineParam(request)")
|
|
.antMatchers(HttpMethod.GET, "/deployments/log").access("@authTools.checkProjPipelineParam(request)")
|