return StringUtils.equals(loggedInUser, assessmentOwnerId);
}
return false;
}
public boolean isUserAllowedToGradeAssessment(final String assessmentId, final String assessmentOwnerId, final boolean published) {
<BUG>checkAssessmentInSite(assessmentId, published);

if (getGradeAnyAssessment()) {</BUG>
return true;
}

return StringUtils.equals(loggedInUser, assessmentOwnerId);
}
return false;
}
public boolean isUserAllowedToGradeAssessment(final String assessmentId, final String assessmentOwnerId, final boolean published) {
if (!isAssessmentInSite(assessmentId, published)) {
return false;
}
if (getGradeAnyAssessment()) {
return true;
}
