mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
AccountManagerImpl: Fix method to check and return systemuser, spring injection failsafe
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
753b884044
commit
e5b23e387d
@ -262,6 +262,9 @@ public class AccountManagerImpl implements AccountManager, AccountService, Manag
|
||||
|
||||
@Override
|
||||
public UserVO getSystemUser() {
|
||||
if (_systemUser == null) {
|
||||
_systemUser = _userDao.findById(User.UID_SYSTEM);
|
||||
}
|
||||
return _systemUser;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user