mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-19 04:56:58 +01:00
remove checks for user type since it is deprecated now
This commit is contained in:
@@ -389,7 +389,7 @@ public class DefaultUserManager extends AbstractUserManager
|
||||
if (user == null) {
|
||||
throw new NotFoundException(User.class, userId);
|
||||
}
|
||||
if (!isTypeDefault(user) || isAnonymousUser(user)) {
|
||||
if (isAnonymousUser(user)) {
|
||||
throw new ChangePasswordNotAllowedException(ContextEntry.ContextBuilder.entity("PasswordChange", "-").in(User.class, user.getName()), user.getType());
|
||||
}
|
||||
user.setPassword(newPassword);
|
||||
|
||||
Reference in New Issue
Block a user