Skip to content
Snippets Groups Projects

Deploy

13 files
+ 117
103
Compare changes
  • Side-by-side
  • Inline

Files

@@ -307,7 +307,8 @@ public class HomeController {
var assistant = pCache.getRequired(assistantId);
if (assistant.getDefaultRole() == PersonSummaryDTO.DefaultRoleEnum.TEACHER
if (!Objects.equals(person.getId(), assistantId)
&& assistant.getDefaultRole() == PersonSummaryDTO.DefaultRoleEnum.TEACHER
&& person.getDefaultRole() != DefaultRole.ADMIN) {
throw new AccessDeniedException(
"Teachers are not permitted to view the feedback of other teachers.");
Loading