summaryrefslogtreecommitdiff
path: root/http/routing.hpp
diff options
context:
space:
mode:
authorNan Zhou <nanzhoumails@gmail.com>2022-08-09 23:15:44 +0300
committerEd Tanous <ed@tanous.net>2022-08-10 17:54:51 +0300
commitac6250ae7584135ca6f88619bfdfd412bbedc951 (patch)
treea6ae81f634f90a6533f22103f4260523a8a87ece /http/routing.hpp
parent54dce7f5d81a1f89061d19bdae657625273d5faa (diff)
downloadbmcweb-ac6250ae7584135ca6f88619bfdfd412bbedc951.tar.xz
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
Diffstat (limited to 'http/routing.hpp')
-rw-r--r--http/routing.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/http/routing.hpp b/http/routing.hpp
index 3c0917f832..4a03a53042 100644
--- a/http/routing.hpp
+++ b/http/routing.hpp
@@ -1362,7 +1362,7 @@ class Router
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 @@ class Router
// 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";