fix locking user rest method

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1386869 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-09-17 22:09:11 +00:00
parent 5597e49a1d
commit 71fc853d38
1 changed files with 1 additions and 1 deletions

View File

@ -887,7 +887,7 @@ public class DefaultUserService
throws RedbackServiceException
{
User user = getUser( username );
if ( user == null )
if ( user != null )
{
user.setLocked( true );
updateUser( user );