Skip to content

Commit

Permalink
Merge pull request #146 from kit-sdq/hotfix/can-assess
Browse files Browse the repository at this point in the history
Hotfix for assessment error
  • Loading branch information
uuqjz authored Nov 14, 2024
2 parents 57c84b6 + 12433ac commit 9bcf745
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private boolean canAssess(ResultDTO result) throws ArtemisNetworkException {
// or if we are an instructor (who can overwrite any assessment)
var assessor = this.getConnection().getAssessor();
return result.assessor() == null
|| result.assessor().id() != assessor.getId()
|| result.assessor().id() == assessor.getId()
|| this.getCourse().isInstructor(assessor);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ public int hashCode() {
@Override
public String toString() {
return "RatingGroup[" + "id=" + id + ", " + "displayName=" + displayName.getDefaultTranslationPattern() + ", "
+ "minPenalty=" + minPenalty + ", " + "getMaxPenalty=" + maxPenalty + ", " + "mistakeTypes="
+ mistakeTypes + ']';
+ "minPenalty=" + minPenalty + ", " + "getMaxPenalty=" + maxPenalty + ']';
}

record RatingGroupDTO(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public String getDefaultTranslationPattern() {

@Override
public String toString() {
throw new IllegalStateException("Format & translate this string before using it.");
return "!!!Format & translate this string before using it!!!";
}

private static MessageFormat escapeStringForMessageFormat(String string, Locale locale) {
Expand Down

0 comments on commit 9bcf745

Please sign in to comment.