diff options
author | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2019-02-13 07:40:59 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-03-12 01:09:50 +0300 |
commit | 6f4fd47925f33d45b31bcf61e5eac2ee22913f77 (patch) | |
tree | 5f0f8a0b699b2e5d09e1fe2ca23edc50ed6745fc /redfish-core | |
parent | 8afa1b9b96aeb2ebebc3d40a7ffd69fc3537bab1 (diff) | |
download | bmcweb-6f4fd47925f33d45b31bcf61e5eac2ee22913f77.tar.xz |
Fix: Power & Thermal patch method role update
Power & Thermal patch method role is updated to
ConfigureComponents instead of ConfigureManager, as PATCH
method can be executed by ConfigureComponents role.
Tested-by:
Verified the PATCH method works with ConfigureComponents
role user itself.
Change-Id: I4de06233dd3eebdeadf160d790ccac853a4972da
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Diffstat (limited to 'redfish-core')
-rw-r--r-- | redfish-core/lib/power.hpp | 2 | ||||
-rw-r--r-- | redfish-core/lib/thermal.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/power.hpp b/redfish-core/lib/power.hpp index a76f191680..c2f9b43925 100644 --- a/redfish-core/lib/power.hpp +++ b/redfish-core/lib/power.hpp @@ -31,7 +31,7 @@ class Power : public Node entityPrivileges = { {boost::beast::http::verb::get, {{"Login"}}}, {boost::beast::http::verb::head, {{"Login"}}}, - {boost::beast::http::verb::patch, {{"ConfigureManager"}}}, + {boost::beast::http::verb::patch, {{"ConfigureComponents"}}}, {boost::beast::http::verb::put, {{"ConfigureManager"}}}, {boost::beast::http::verb::delete_, {{"ConfigureManager"}}}, {boost::beast::http::verb::post, {{"ConfigureManager"}}}}; diff --git a/redfish-core/lib/thermal.hpp b/redfish-core/lib/thermal.hpp index 14b018fc90..d18b62da05 100644 --- a/redfish-core/lib/thermal.hpp +++ b/redfish-core/lib/thermal.hpp @@ -30,7 +30,7 @@ class Thermal : public Node entityPrivileges = { {boost::beast::http::verb::get, {{"Login"}}}, {boost::beast::http::verb::head, {{"Login"}}}, - {boost::beast::http::verb::patch, {{"ConfigureManager"}}}, + {boost::beast::http::verb::patch, {{"ConfigureComponents"}}}, {boost::beast::http::verb::put, {{"ConfigureManager"}}}, {boost::beast::http::verb::delete_, {{"ConfigureManager"}}}, {boost::beast::http::verb::post, {{"ConfigureManager"}}}}; |