Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenneg committed Oct 28, 2023
1 parent 3458bf0 commit 1f9a24e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

import java.util.Set;

import static java.lang.Boolean.TRUE;

@ApplicationScoped
public class RBACUsersProcessor implements Processor {
/**
Expand Down Expand Up @@ -72,11 +74,10 @@ public void process(final Exchange exchange) {
}

private static User toUser(JsonObject rbacUser) {

User user = new User();
user.setUsername(rbacUser.getString("username"));
user.setEmail(rbacUser.getString("email"));
user.setAdmin(rbacUser.getBoolean("is_org_admin"));
user.setAdmin(TRUE.equals(rbacUser.getBoolean("is_org_admin")));
return user;
}
}
2 changes: 1 addition & 1 deletion engine/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ quarkus.log.cloudwatch.access-key-secret=placeholder

quarkus.log.category."com.redhat.cloud.notifications.health.KafkaConsumedTotalChecker".level=DEBUG

# Should messages about failed injections be delivered as new events (and thus sendEmailsRequest to admins)
# Should messages about failed injections be delivered as new events (and thus emails to admins)
reinject.enabled=false

# Use this property to load the templates from the DB. Temp, to be removed soon.
Expand Down

0 comments on commit 1f9a24e

Please sign in to comment.