import org.sonar.api.server.ws.Response;
import org.sonar.api.server.ws.WebService;
import org.sonar.core.config.CorePropertyDefinitions;
-import org.sonar.core.permission.GlobalPermissions;
import org.sonar.core.util.UuidFactory;
import org.sonar.db.DbClient;
import org.sonar.db.DbSession;
private static WsRoot.Root toRoot(WsRoot.Root.Builder builder, UserDto dto) {
builder.clear();
- if (dto.getLogin() != null) {
- builder.setLogin(dto.getLogin());
- }
+ builder.setLogin(dto.getLogin());
if (dto.getName() != null) {
builder.setName(dto.getName());
}