handled test mode when getting FirstName
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@141361 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c905902b5d
commit
2cec1d1c25
|
@ -2663,6 +2663,9 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
|||
*/
|
||||
@Override
|
||||
public String getMyFirstName(){
|
||||
if(!isWithinPortal())
|
||||
return "";
|
||||
|
||||
PortalContextInfo info = WsUtil.getPortalContext(this.getThreadLocalRequest());
|
||||
String username = info.getUsername();
|
||||
String firstName = "";
|
||||
|
|
Loading…
Reference in New Issue