summaryrefslogtreecommitdiff
path: root/redfish-core/lib/power.hpp
diff options
context:
space:
mode:
authorRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2019-02-13 07:40:59 +0300
committerEd Tanous <ed.tanous@intel.com>2019-03-12 01:09:50 +0300
commit6f4fd47925f33d45b31bcf61e5eac2ee22913f77 (patch)
tree5f0f8a0b699b2e5d09e1fe2ca23edc50ed6745fc /redfish-core/lib/power.hpp
parent8afa1b9b96aeb2ebebc3d40a7ffd69fc3537bab1 (diff)
downloadbmcweb-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/lib/power.hpp')
-rw-r--r--redfish-core/lib/power.hpp2
1 files changed, 1 insertions, 1 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"}}}};