This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects

Merge Master Bugfix back to Development

Merged Michael Breu requested to merge master into development
Viewing commit ea4223eb
Show latest version
1 file
+ 5
6
Compare changes
  • Side-by-side
  • Inline
@@ -17,15 +17,14 @@ public class AuthorityService {
private final AuthorityRepository authorityRepository;
private final UserRepository userRepository;
public AuthorityService(UserRepository userRepository, AuthorityRepository authorityRepository) {
this.userRepository = userRepository;
public AuthorityService(AuthorityRepository authorityRepository) {
this.authorityRepository = authorityRepository;
}
// Get all users with authority ROLE_REVIEW_MANAGER
List<User> findAllUsersWithAuthority(String authority) {
return authorityRepository.findAllUsersWithAuthority(authority);
log.info("Finding all users with authority: {}", authority);
List<User> users = authorityRepository.findAllUsersWithAuthority(authority);
log.info("Found {} users with authority: {}", users.size(), authority);
return users;
}
}