add more caching for ldap roles
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1437804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f11ba97b41
commit
54c5daeba3
|
@ -364,9 +364,11 @@ public class LdapRbacManager
|
||||||
{
|
{
|
||||||
for ( String roleName : roleNames )
|
for ( String roleName : roleNames )
|
||||||
{
|
{
|
||||||
Role role = getRole( roleName );
|
Role role = this.rbacImpl.getRole( roleName );
|
||||||
|
role = ( role == null ) ? new RoleImpl( roleName ) : role;
|
||||||
if ( role != null )
|
if ( role != null )
|
||||||
{
|
{
|
||||||
|
rolesCache.put( role.getName(), role );
|
||||||
roles.add( role );
|
roles.add( role );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue