diff options
Diffstat (limited to 'redfish-core/lib/roles.hpp')
-rw-r--r-- | redfish-core/lib/roles.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/redfish-core/lib/roles.hpp b/redfish-core/lib/roles.hpp index 4256c7ec47..d2071a5cf1 100644 --- a/redfish-core/lib/roles.hpp +++ b/redfish-core/lib/roles.hpp @@ -36,6 +36,10 @@ inline std::string getRoleFromPrivileges(std::string_view priv) { return "Operator"; } + else if (priv == "priv-noaccess") + { + return "NoAccess"; + } return ""; } @@ -55,6 +59,10 @@ inline bool getAssignedPrivFromRole(std::string_view role, { privArray = {"Login", "ConfigureSelf"}; } + else if (role == "NoAccess") + { + privArray = nlohmann::json::array(); + } else { return false; |