junction front - back
This commit is contained in:
@ -42,6 +42,13 @@ public class ResearchesService {
|
||||
return articleRepo.findById(id);
|
||||
}
|
||||
|
||||
public Iterable<Research> getResearchesByAuthor(long authorId){
|
||||
Researcher researcher = researcherRepo.findById(authorId);
|
||||
if (researcher == null) return null;
|
||||
|
||||
return researcherRepo.findAllByAuthorId(researcher);
|
||||
}
|
||||
|
||||
public boolean hasNoAccessTo(Research research, User user){
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user