GET /users doesn't return Admins if the poster isn't an admin
This commit is contained in:
@@ -114,6 +114,10 @@ public class UserService {
|
||||
return userRepo.findAll();
|
||||
}
|
||||
|
||||
public Iterable<User> getAllExceptAdmins(){
|
||||
return userRepo.findAllExceptAdmins();
|
||||
}
|
||||
|
||||
|
||||
public Iterable<User> getAllTeachers (){return userRepo.findAllTeachers();}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user