Rename method to isOnAllowlist
While we're here testing things anyway, it seems like a good time to do
a simple method rename following the projects new naming guidelines.
This seems like an easy thing to do while we're here anyway and might
short circuit a harder discussion later.
Tested:
Code compiles.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ie5ed1c38d7dec13f875efae4acc22f4fd582f9b9
diff --git a/http/http_connection.hpp b/http/http_connection.hpp
index c296782..b169309 100644
--- a/http/http_connection.hpp
+++ b/http/http_connection.hpp
@@ -355,7 +355,7 @@
return;
}
- if (!crow::authorization::isOnWhitelist(req->url, req->method()) &&
+ if (!crow::authorization::isOnAllowlist(req->url, req->method()) &&
thisReq.session == nullptr)
{
BMCWEB_LOG_WARNING << "[AuthMiddleware] authorization failed";