summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redfish-core/lib/account_service.hpp8
-rw-r--r--redfish-core/lib/roles.hpp8
2 files changed, 0 insertions, 16 deletions
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp
index 291a207d02..0658f3ff3b 100644
--- a/redfish-core/lib/account_service.hpp
+++ b/redfish-core/lib/account_service.hpp
@@ -90,10 +90,6 @@ inline std::string getRoleIdFromPrivilege(std::string_view role)
{
return "Operator";
}
- else if ((role == "") || (role == "priv-noaccess"))
- {
- return "NoAccess";
- }
return "";
}
inline std::string getPrivilegeFromRoleId(std::string_view role)
@@ -114,10 +110,6 @@ inline std::string getPrivilegeFromRoleId(std::string_view role)
{
return "priv-operator";
}
- else if (role == "NoAccess")
- {
- return "priv-noaccess";
- }
return "";
}
diff --git a/redfish-core/lib/roles.hpp b/redfish-core/lib/roles.hpp
index 58b45775d7..d170a5c358 100644
--- a/redfish-core/lib/roles.hpp
+++ b/redfish-core/lib/roles.hpp
@@ -40,10 +40,6 @@ inline std::string getRoleFromPrivileges(std::string_view priv)
{
return "Operator";
}
- else if (priv == "priv-noaccess")
- {
- return "NoAccess";
- }
return "";
}
@@ -67,10 +63,6 @@ inline bool getAssignedPrivFromRole(std::string_view role,
{
privArray = {"Login"};
}
- else if (role == "NoAccess")
- {
- privArray = {};
- }
else
{
return false;