We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29ba26a commit 828b3c4Copy full SHA for 828b3c4
1 file changed
src/main/java/hbp/mip/user/ActiveUserService.java
@@ -12,7 +12,6 @@
12
import java.util.Objects;
13
14
@Service
15
-@Transactional
16
public class ActiveUserService {
17
18
private final UserRepository userRepository;
@@ -30,6 +29,7 @@ public ActiveUserService(UserRepository userRepository) {
30
29
*
31
* @return the userDAO
32
*/
+ @Transactional
33
public UserDTO getActiveUser(Authentication authentication) {
34
UserDAO activeUserDAO;
35
if (authenticationIsEnabled) {
@@ -72,6 +72,7 @@ public UserDTO getActiveUser(Authentication authentication) {
72
return new UserDTO(activeUserDAO);
73
}
74
75
76
public UserDTO agreeToNDA(Authentication authentication) {
77
UserDTO userDTO = getActiveUser(authentication);
78
0 commit comments