1
0
forked from PGL/Clyde

GET /users doesn't return Admins if the poster isn't an admin

This commit is contained in:
2024-03-17 16:26:30 +01:00
parent 37f8a3ac4e
commit 76f5a39a8f
3 changed files with 20 additions and 1 deletions

View File

@@ -114,6 +114,10 @@ public class UserService {
return userRepo.findAll();
}
public Iterable<User> getAllExceptAdmins(){
return userRepo.findAllExceptAdmins();
}
public Iterable<User> getAllTeachers (){return userRepo.findAllTeachers();}