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:
parent
5597e49a1d
commit
71fc853d38
|
@ -887,7 +887,7 @@ public class DefaultUserService
|
|||
throws RedbackServiceException
|
||||
{
|
||||
User user = getUser( username );
|
||||
if ( user == null )
|
||||
if ( user != null )
|
||||
{
|
||||
user.setLocked( true );
|
||||
updateUser( user );
|
||||
|
|
Loading…
Reference in New Issue