Update 'restservice/src/main/java/com/plannaplan/controllers/ExchangeController.java'
posiible mistake in course checking
This commit is contained in:
parent
c177314419
commit
65ea502619
@ -89,7 +89,7 @@ public class ExchangeController extends TokenBasedController {
|
|||||||
final Groups groupInstance = group.get();
|
final Groups groupInstance = group.get();
|
||||||
|
|
||||||
if (assignmentInstance.getGroup().getCourseId() != null
|
if (assignmentInstance.getGroup().getCourseId() != null
|
||||||
&& assignmentInstance.getGroup().getCourseId().getId() != groupInstance.getCourseId().getId()) {
|
&& ! assignmentInstance.getGroup().getCourseId().getId().equals(groupInstance.getCourseId().getId())) {
|
||||||
return new ResponseEntity<>("You can performe exchange only within one course.", HttpStatus.BAD_REQUEST);
|
return new ResponseEntity<>("You can performe exchange only within one course.", HttpStatus.BAD_REQUEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user