Skip to content

Commit

Permalink
add JavaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-ve committed Feb 18, 2025
1 parent d01a94a commit c055160
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ protected Course preCheckUserAndCourseForMessaging(User user, Long courseId) {
return course;
}

/**
* Ensures that user is allowed to communicate or message in the given course
*
* @param user that wants to communicate or message
* @param course the course in which the user wants to communicate or message
*/
public void preCheckUserAndCourseForCommunicationOrMessaging(User user, Course course) {
authorizationCheckService.checkHasAtLeastRoleInCourseElseThrow(Role.STUDENT, course, user);

Expand Down

0 comments on commit c055160

Please sign in to comment.