diff options
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/lib/account_service.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp index 47fb58d902..dc393ae883 100644 --- a/redfish-core/lib/account_service.hpp +++ b/redfish-core/lib/account_service.hpp @@ -1899,14 +1899,14 @@ inline void std::optional<bool> locked; std::optional<std::vector<std::string>> accountTypes; - bool userSelf = (username == req.session->username); - if (req.session == nullptr) { messages::internalError(asyncResp->res); return; } + bool userSelf = (username == req.session->username); + Privileges effectiveUserPrivileges = redfish::getUserPrivileges(*req.session); Privileges configureUsers = {"ConfigureUsers"}; |