|
@@ -167,6 +167,7 @@ allowDeleteReference_default(UA_Server *server, UA_AccessControl *ac,
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifdef UA_ENABLE_HISTORIZING
|
|
static UA_Boolean
|
|
static UA_Boolean
|
|
allowHistoryUpdateUpdateData_default(UA_Server *server, UA_AccessControl *ac,
|
|
allowHistoryUpdateUpdateData_default(UA_Server *server, UA_AccessControl *ac,
|
|
const UA_NodeId *sessionId, void *sessionContext,
|
|
const UA_NodeId *sessionId, void *sessionContext,
|
|
@@ -185,7 +186,7 @@ allowHistoryUpdateDeleteRawModified_default(UA_Server *server, UA_AccessControl
|
|
bool isDeleteModified) {
|
|
bool isDeleteModified) {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+#endif
|
|
|
|
|
|
/***************************************/
|
|
/***************************************/
|
|
/* Create Delete Access Control Plugin */
|
|
/* Create Delete Access Control Plugin */
|
|
@@ -222,8 +223,12 @@ UA_AccessControl_default(UA_AccessControl *ac,
|
|
ac->getUserExecutableOnObject = getUserExecutableOnObject_default;
|
|
ac->getUserExecutableOnObject = getUserExecutableOnObject_default;
|
|
ac->allowAddNode = allowAddNode_default;
|
|
ac->allowAddNode = allowAddNode_default;
|
|
ac->allowAddReference = allowAddReference_default;
|
|
ac->allowAddReference = allowAddReference_default;
|
|
|
|
+
|
|
|
|
+#ifdef UA_ENABLE_HISTORIZING
|
|
ac->allowHistoryUpdateUpdateData = allowHistoryUpdateUpdateData_default;
|
|
ac->allowHistoryUpdateUpdateData = allowHistoryUpdateUpdateData_default;
|
|
ac->allowHistoryUpdateDeleteRawModified = allowHistoryUpdateDeleteRawModified_default;
|
|
ac->allowHistoryUpdateDeleteRawModified = allowHistoryUpdateDeleteRawModified_default;
|
|
|
|
+#endif
|
|
|
|
+
|
|
ac->allowDeleteNode = allowDeleteNode_default;
|
|
ac->allowDeleteNode = allowDeleteNode_default;
|
|
ac->allowDeleteReference = allowDeleteReference_default;
|
|
ac->allowDeleteReference = allowDeleteReference_default;
|
|
|
|
|