Skip to content

Commit a129695

Browse files
committed
template.getProject_id() to template.getId()
1 parent 8e4d95a commit a129695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/main/controllers/Project/TestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public TestDto create(TestDto template) throws AqualityException {
4646
}
4747

4848
public List<TestDto> get(TestDto template, boolean withChildren) throws AqualityException {
49-
if(baseUser.isFromGlobalManagement() || baseUser.getProjectUserByTestId(template.getProject_id()).isViewer()){
49+
if(baseUser.isFromGlobalManagement() || baseUser.getProjectUserByTestId(template.getId()).isViewer()){
5050
return fillTests(testDao.searchAll(template), withChildren);
5151
}else{
5252
throw new AqualityPermissionsException("Account is not allowed to view Milestones", baseUser);

0 commit comments

Comments
 (0)