Redfish privileges
Redfish privilege authorization subsystem controlled by the
privilege_registy.json configuration file.
PropertyOverrides, SubordinateOverrides and ResourceURIOverrides
are not yet implemented.
Change-Id: I4d5670d557f4da172460ada3512e015830dab667
Signed-off-by: Borawski.Lukasz <lukasz.borawski@intel.com>
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/redfish-core/lib/redfish_sessions.hpp b/redfish-core/lib/redfish_sessions.hpp
index 0835fa1..11cde72 100644
--- a/redfish-core/lib/redfish_sessions.hpp
+++ b/redfish-core/lib/redfish_sessions.hpp
@@ -28,7 +28,7 @@
Sessions(CrowApp& app, PrivilegeProvider& provider)
: Node(app, provider, "#Session.v1_0_2.Session",
"/redfish/v1/SessionService/Sessions/<str>", std::string()) {
- nodeJson["@odata.type"] = Node::odataType;
+ nodeJson["@odata.type"] = "#Session.v1_0_2.Session";
nodeJson["@odata.context"] = "/redfish/v1/$metadata#Session.Session";
nodeJson["Name"] = "User Session";
nodeJson["Description"] = "Manager User Session";
@@ -95,8 +95,8 @@
: Node(app, provider, "#SessionCollection.SessionCollection",
"/redfish/v1/SessionService/Sessions/"),
memberSession(app, provider) {
- nodeJson["@odata.type"] = Node::odataType;
- nodeJson["@odata.id"] = Node::odataId;
+ nodeJson["@odata.type"] = "#SessionCollection.SessionCollection";
+ nodeJson["@odata.id"] = "/redfish/v1/SessionService/Sessions/";
nodeJson["@odata.context"] =
"/redfish/v1/$metadata#SessionCollection.SessionCollection";
nodeJson["Name"] = "Session Collection";