We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d1c2b commit f9cc4a7Copy full SHA for f9cc4a7
src/main/java/ch/ethz/seb/sps/server/weblayer/AdminProctorController.java
@@ -869,6 +869,11 @@ public List<Exam> getExamsStarted(
869
final Set<Long> granted = this.userService
870
.getIdsWithReadEntityPrivilege(EntityType.EXAM)
871
.getOrThrow();
872
+
873
+ if (granted.isEmpty() && !userService.hasGrant(API.PrivilegeType.READ, EntityType.EXAM)) {
874
+ return Collections.emptyList();
875
+ }
876
877
return this.examDAO
878
.getExamsWithin(filterMap, granted)
879
.getOrThrow()
0 commit comments