fix Sonar violation

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1496795 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2013-06-26 07:01:39 +00:00
parent b59d828ddc
commit 3e2ec99b99

View File

@ -132,11 +132,11 @@ private void removeTemplatedRole( RedbackRoleModel model, ModelTemplate template
// check if we want to remove the resources // check if we want to remove the resources
Resource rbacResource = rbacManager.getResource( resource ); Resource rbacResource = rbacManager.getResource( resource );
if ( !rbacResource.isPermanent() ) //if ( !rbacResource.isPermanent() )
{ //{
//todo we need a better way of finding if a resource is unused anymore...probably a cleaning process in the db or something //todo we need a better way of finding if a resource is unused anymore...probably a cleaning process in the db or something
//rbacManager.removeResource( rbacResource ); //rbacManager.removeResource( rbacResource );
} //}
// todo find dangling child role references and smoke // todo find dangling child role references and smoke
} }