mirror of https://github.com/apache/archiva.git
-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:
parent
66b00c3b3e
commit
afeefc7f15
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue