user nules

This commit is contained in:
Filip Izydorczyk
2020-12-18 15:24:01 +01:00
parent ca440a3fd5
commit 5ef7c19ade
5 changed files with 30 additions and 22 deletions

View File

@ -77,4 +77,8 @@ public class UserService {
return this.repo.findById(userId);
}
public List<User> getAllStudents() {
return this.repo.getAllByRole(UserRoles.STUDENT);
}
}