diff options
author | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2019-11-08 14:29:40 +0300 |
---|---|---|
committer | Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com> | 2019-11-09 10:41:32 +0300 |
commit | cb3e11fadd77b04f5b26aefbde18411625e5e304 (patch) | |
tree | 0266725bf7c1a3f40aba067f6402172414139259 /redfish-core/lib/roles.hpp | |
parent | 4380545ee6b3985f30060e4828fe5ac3a1e3475e (diff) | |
download | bmcweb-cb3e11fadd77b04f5b26aefbde18411625e5e304.tar.xz |
Remove priv-callback support from bmcweb
priv-callback is valid only for IPMI modem callback, which
was never used, and it's decided to deprecate the same
https://gerrit.openbmc-project.xyz/#/c/openbmc/docs/+/26839/
Removing the support in redfish now.
Tested:
1. Verified callback role was not in list in Get of
https://<BMC IP>/redfish/v1/AccountService/Roles/
2. Redfish validator passed for this change.
Change-Id: Ia16fb584a07bbdf29197cd5dd54e7a9682627c19
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Diffstat (limited to 'redfish-core/lib/roles.hpp')
-rw-r--r-- | redfish-core/lib/roles.hpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/redfish-core/lib/roles.hpp b/redfish-core/lib/roles.hpp index d170a5c358..4256c7ec47 100644 --- a/redfish-core/lib/roles.hpp +++ b/redfish-core/lib/roles.hpp @@ -28,10 +28,6 @@ inline std::string getRoleFromPrivileges(std::string_view priv) { return "Administrator"; } - else if (priv == "priv-callback") - { - return "Callback"; - } else if (priv == "priv-user") { return "ReadOnly"; @@ -59,10 +55,6 @@ inline bool getAssignedPrivFromRole(std::string_view role, { privArray = {"Login", "ConfigureSelf"}; } - else if (role == "Callback") - { - privArray = {"Login"}; - } else { return false; |