File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/main/controllers/Project Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public TestDto create(TestDto template) throws AqualityException {
46
46
}
47
47
48
48
public List <TestDto > get (TestDto template , boolean withChildren ) throws AqualityException {
49
- if (baseUser .isFromGlobalManagement () || baseUser .getProjectUser (template .getProject_id ()).isViewer ()){
49
+ if (baseUser .isFromGlobalManagement () || baseUser .getProjectUserByTestId (template .getProject_id ()).isViewer ()){
50
50
return fillTests (testDao .searchAll (template ), withChildren );
51
51
}else {
52
52
throw new AqualityPermissionsException ("Account is not allowed to view Milestones" , baseUser );
@@ -60,7 +60,7 @@ public List<TestDto> get(TestDto template) throws AqualityException {
60
60
61
61
@ Override
62
62
public boolean delete (TestDto template ) throws AqualityException {
63
- if (baseUser .isManager () || baseUser .getProjectUserByTestId (template .getProject_id ()).isEditor ()){
63
+ if (baseUser .isManager () || baseUser .getProjectUser (template .getProject_id ()).isEditor ()){
64
64
return testDao .delete (template );
65
65
}else {
66
66
throw new AqualityPermissionsException ("Account is not allowed to delete Test" , baseUser );
You can’t perform that action at this time.
0 commit comments