mirror of https://github.com/apache/cloudstack.git
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…
Reference in New Issue