mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-15 16:51:07 +00:00
require authenticated user to create UserDTO
This commit is contained in:
1 parent
73f7ce197f
commit
a964dcda47
1 file changed
+1
-1
@@ -631,7 +631,7 @@ public class SecurityServiceImpl extends RemoteServiceServlet implements Replica
|
||||
public User getCurrentUser() {
|
||||
final User result;
|
||||
Subject subject = SecurityUtils.getSubject();
|
||||
if (subject == null) {
|
||||
if (subject == null || !subject.isAuthenticated()) {
|
||||
result = null;
|
||||
} else {
|
||||
String username = SessionUtils.loadUsername();
|
||||
|
||||
Reference in new issue
Block a user