diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2021-07-30 22:52:53 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2021-07-30 22:53:53 +0300 |
commit | 8b6a35f0f99ed38293f7d134511d6181c88c5a59 (patch) | |
tree | 14b10e5b55b40d1ce76b9071ecf2c30a3035f78f /redfish-core/lib/log_services.hpp | |
parent | ad89dcf0a10cee247f92b00d85ad8bee4ba68e7c (diff) | |
download | bmcweb-8b6a35f0f99ed38293f7d134511d6181c88c5a59.tar.xz |
Fix System EventLog Collection permission
Both are the login Privilege so this has no client impact.
From redfish-core/include/registries/privilege_registry.hpp:
conststaticauto& getLogEntry = privilegeSetLogin;
conststaticauto& getLogEntryCollection = privilegeSetLogin;
From https://redfish.dmtf.org/schemas/v1/LogEntryCollection_v1.xml:
/redfish/v1/Systems/{ComputerSystemId}/LogServices/{LogServiceId}/Entries
Tested: None.
Change-Id: I955fa005db332346e3151d1ac6b7f4ad43406063
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/log_services.hpp')
-rw-r--r-- | redfish-core/lib/log_services.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index dad63a523f..6ddd6d6f91 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -1151,7 +1151,7 @@ inline void requestRoutesJournalEventLogEntryCollection(App& app) { BMCWEB_ROUTE(app, "/redfish/v1/Systems/system/LogServices/EventLog/Entries/") - .privileges(redfish::privileges::getLogEntry) + .privileges(redfish::privileges::getLogEntryCollection) .methods(boost::beast::http::verb::get)( [](const crow::Request& req, const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) { |