routing: fix some comments
Found these when I went through the code path of authx.
Tested: comment only changes.
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: Id80725f4bf5f3972e975347dcac8598e2ffab332
diff --git a/http/routing.hpp b/http/routing.hpp
index 3c0917f..4a03a53 100644
--- a/http/routing.hpp
+++ b/http/routing.hpp
@@ -1362,7 +1362,7 @@
passwordExpired = false;
}
- // Get the userprivileges from the role
+ // Get the user's privileges from the role
redfish::Privileges userPrivileges =
redfish::getUserPrivileges(userRole);
@@ -1371,10 +1371,10 @@
// value from any previous use of this session.
req.session->isConfigureSelfOnly = *passwordExpired;
- // Modifyprivileges if isConfigureSelfOnly.
+ // Modify privileges if isConfigureSelfOnly.
if (req.session->isConfigureSelfOnly)
{
- // Remove allprivileges except ConfigureSelf
+ // Remove all privileges except ConfigureSelf
userPrivileges = userPrivileges.intersection(
redfish::Privileges{"ConfigureSelf"});
BMCWEB_LOG_DEBUG << "Operation limited to ConfigureSelf";