Skip to content

Commit

Permalink
SAK-50639 Assignments: Hide IDs in group submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanDavid102 committed Dec 23, 2024
1 parent 6a8de33 commit 7bf49c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1698,6 +1698,7 @@ private String build_student_view_submission_context(VelocityPortlet portlet, Co
String contextString = (String) state.getAttribute(STATE_CONTEXT_STRING);
context.put("context", contextString);
context.put("NamePropSubmissionScaledPreviousGrades", ResourceProperties.PROP_SUBMISSION_SCALED_PREVIOUS_GRADES);
context.put("showUserId", serverConfigurationService.getBoolean("assignment.users.ids.show", true));

User user = (User) state.getAttribute(STATE_USER);
log.debug(this + " BUILD SUBMISSION FORM WITH USER " + user.getId() + " NAME " + user.getDisplayName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,7 @@ $(document).ready(function(){
<span style="font-size: smaller; color: blue;">
#set($gusers = $!service.getSortedGroupUsers($group))
#foreach ($user in $gusers)
$formattedText.escapeHtml($user.getDisplayName()) ($formattedText.escapeHtml($user.getDisplayId()))
#if ($velocityCount < $gusers.size()),#end
$formattedText.escapeHtml($user.getDisplayName())#if ($showUserId) ($formattedText.escapeHtml($user.getDisplayId())) #end#if ($velocityCount < $gusers.size()),#end
#end
</span>

Expand Down

0 comments on commit 7bf49c0

Please sign in to comment.