summaryrefslogtreecommitdiff
path: root/redfish-core
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core')
-rw-r--r--redfish-core/include/node.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/include/node.hpp b/redfish-core/include/node.hpp
index fddeaa01e5..9086f1e0ef 100644
--- a/redfish-core/include/node.hpp
+++ b/redfish-core/include/node.hpp
@@ -178,9 +178,9 @@ class Node
*/
inline bool isAllowedWithoutConfigureSelf(const crow::Request& req)
{
- const std::string& userRole =
- crow::persistent_data::UserRoleMap::getInstance().getUserRole(
- req.session->username);
+ const std::string& userRole = req.userRole;
+ BMCWEB_LOG_DEBUG << "isAllowedWithoutConfigureSelf for the role "
+ << req.userRole;
Privileges effectiveUserPrivileges =
redfish::getUserPrivileges(userRole);
effectiveUserPrivileges.resetSinglePrivilege("ConfigureSelf");