Skip to content

Commit f9cc4a7

Browse files
committed
SEBSERV-702 Fixed privileges for Application search view
1 parent b7d1c2b commit f9cc4a7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/ch/ethz/seb/sps/server/weblayer/AdminProctorController.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,11 @@ public List<Exam> getExamsStarted(
869869
final Set<Long> granted = this.userService
870870
.getIdsWithReadEntityPrivilege(EntityType.EXAM)
871871
.getOrThrow();
872+
873+
if (granted.isEmpty() && !userService.hasGrant(API.PrivilegeType.READ, EntityType.EXAM)) {
874+
return Collections.emptyList();
875+
}
876+
872877
return this.examDAO
873878
.getExamsWithin(filterMap, granted)
874879
.getOrThrow()

0 commit comments

Comments
 (0)