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 @DaanHoogland
Co-authored-by: dahn <daan.hoogland@gmail.com>
  • Loading branch information
daviftorres and DaanHoogland authored Mar 31, 2026
commit a5ae44b6290114565b2c3c2f5ec753d6676a7624
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