-merged with -r616198 in archiva-1.0.x branch

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@616600 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2008-01-30 02:51:54 +00:00
parent 66b00c3b3e
commit afeefc7f15
1 changed files with 9 additions and 1 deletions

View File

@ -56,7 +56,15 @@ public class ArchivaXworkUser
private SecuritySession getSecuritySession()
{
return (SecuritySession) getContextSession().get( SecuritySession.ROLE );
SecuritySession securitySession =
(SecuritySession) getContextSession().get( SecuritySystemConstants.SECURITY_SESSION_KEY );
if ( securitySession == null )
{
securitySession = (SecuritySession) getContextSession().get( SecuritySession.ROLE );
}
return securitySession;
}
public String getActivePrincipal()