We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e4d95a commit a129695Copy full SHA for a129695
src/main/java/main/controllers/Project/TestController.java
@@ -46,7 +46,7 @@ public TestDto create(TestDto template) throws AqualityException {
46
}
47
48
public List<TestDto> get(TestDto template, boolean withChildren) throws AqualityException {
49
- if(baseUser.isFromGlobalManagement() || baseUser.getProjectUserByTestId(template.getProject_id()).isViewer()){
+ if(baseUser.isFromGlobalManagement() || baseUser.getProjectUserByTestId(template.getId()).isViewer()){
50
return fillTests(testDao.searchAll(template), withChildren);
51
}else{
52
throw new AqualityPermissionsException("Account is not allowed to view Milestones", baseUser);
0 commit comments