1
0
forked from PGL/Clyde

added the GET /teachers (#130)

had to fix the mock and the UserController isAdminOrSecretary

Reviewed-on: PGL/Clyde#130
Reviewed-by: Wal <karpinskiwal@gmail.com>
Reviewed-by: Debucquoy Anthony <d.tonitch@gmail.com>
Co-authored-by: Bartha Maxime <231026@umons.ac.be>
Co-committed-by: Bartha Maxime <231026@umons.ac.be>
This commit is contained in:
2024-03-16 17:16:46 +01:00
committed by Maxime
parent 32e26f35cb
commit d5f6656e2b
4 changed files with 28 additions and 1 deletions

View File

@@ -103,4 +103,8 @@ public class UserService {
public Iterable<User> getAll(){
return userRepo.findAll();
}
public Iterable<User> getAllTeachers (){return userRepo.findAllTeachers();}
}