Skip to content

Commit c984a74

Browse files
committed
fixing dashboad permissions
1 parent 403a407 commit c984a74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/io/mixeway/api/dashboard/controller/DashboardController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public ResponseEntity<SessionOwner> getSesstionOwner(HttpServletRequest request)
3535
return dashboardService.getSessionOwner(request.getUserPrincipal().getName());
3636

3737
}
38-
@PreAuthorize("hasAuthority('ROLE_ADMIN')")
38+
@PreAuthorize("hasAuthority('ROLE_USER')")
3939
@GetMapping(value = "/stat")
4040
public ResponseEntity<DashboardStat> getDashboardStat(){
4141
return dashboardService.getDashboardStat();

src/main/java/io/mixeway/scanmanager/integrations/checkmarx/apiclient/CheckmarxApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private void setGitRepositoryForProject(Scanner scanner, CodeProject codeProject
231231
String passwordString = getPasswordStringForCodeProejct(codeProject);
232232
HttpEntity<CxSetGitRepo> cxSetGitRepoHttpEntity = new HttpEntity<>(new CxSetGitRepo(codeProject, passwordString), codeRequestHelper.getHttpEntity().getHeaders());
233233
ObjectMapper mapper = new ObjectMapper();
234-
log.info("[Checkmarx] Setting git repo {}", mapper.writeValueAsString(cxSetGitRepoHttpEntity));
234+
log.debug("[Checkmarx] Setting git repo {}", mapper.writeValueAsString(cxSetGitRepoHttpEntity));
235235
codeRequestHelper.setHttpEntity(cxSetGitRepoHttpEntity);
236236
try {
237237
int remoteId = (codeProject.getRemoteid() == 0) ? codeProject.getVersionIdAll() : (codeProject.getVersionIdAll() == 0) ? codeProject.getRemoteid() : codeProject.getVersionIdAll();

0 commit comments

Comments
 (0)