Skip to content

Commit

Permalink
SAM-3271 send to all instructors if there are no group instructors (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff authored Oct 9, 2017
1 parent aa043c1 commit 522b266
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,13 @@ private void notifyInstructor (String site

try{
Site site = siteService.getSite(siteID);
Set<String> siteUsersHasRole;
Set<String> siteUsersHasRole = new HashSet<>();

if (replacementValues.get("releaseToGroups") != null){
siteUsersHasRole = extractInstructorsFromGroups(site,replacementValues.get("releaseToGroups") );
}else{
}

if (siteUsersHasRole.isEmpty()) {
AuthzGroup azGroup = authzGroupService.getAuthzGroup("/site/" + siteID);
siteUsersHasRole = site.getUsersHasRole(azGroup.getMaintainRole());
}
Expand Down

0 comments on commit 522b266

Please sign in to comment.