summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-30 11:56:00 +0200
committerSimon Rettberg2015-09-30 11:56:00 +0200
commit564a5195c8240c47e2ad71ffacfe5efe5d8b939d (patch)
tree073aed5a6d8b1df6818db147a7c08837ca390631
parentFixes (backwards compat) (diff)
downloadmasterserver-564a5195c8240c47e2ad71ffacfe5efe5d8b939d.tar.gz
masterserver-564a5195c8240c47e2ad71ffacfe5efe5d8b939d.tar.xz
masterserver-564a5195c8240c47e2ad71ffacfe5efe5d8b939d.zip
Fix getUSerInfo call on Session class
-rw-r--r--src/main/java/org/openslx/imagemaster/thrift/server/MasterServerHandler.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/openslx/imagemaster/thrift/server/MasterServerHandler.java b/src/main/java/org/openslx/imagemaster/thrift/server/MasterServerHandler.java
index ec13a6f..ed1db56 100644
--- a/src/main/java/org/openslx/imagemaster/thrift/server/MasterServerHandler.java
+++ b/src/main/java/org/openslx/imagemaster/thrift/server/MasterServerHandler.java
@@ -135,8 +135,7 @@ public class MasterServerHandler implements MasterServer.Iface
final Session session = SessionManager.getSessionFromToken( token );
if ( session == null )
throw new TInvalidTokenException();
- return new UserInfo( session.getLogin(), session.getFirstName(),
- session.getLastName(), session.getEMail(), session.getOrgenizationId() );
+ return session.getUserInfo();
}
@Override