Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestion from @bernardodemarco
Co-authored-by: Bernardo De Marco Gonçalves <bernardomg2004@gmail.com>
  • Loading branch information
daviftorres and bernardodemarco authored Apr 1, 2026
commit c48477135d70260420b868fc09aac5f70ff97580
3 changes: 2 additions & 1 deletion server/src/main/java/com/cloud/user/AccountManagerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -3827,10 +3827,11 @@ public void buildACLViewSearchCriteria(SearchCriteria<? extends ControlledViewEn

@Override
public UserAccount getUserByApiKey(String apiKey) {
ApiKeyPairVO keyPair = apiKeyPairDao.findByApiKey(apiKey);

if (keyPair == null) {
return null;
}
Comment thread
daviftorres marked this conversation as resolved.
ApiKeyPairVO keyPair = apiKeyPairDao.findByApiKey(apiKey);

Comment thread
bernardodemarco marked this conversation as resolved.
return userAccountDao.findById(keyPair.getUserId());
}
Expand Down