In function UaProvider_x_CallAsync there is this code:
Code: Select all
#if UASERVER_SUPPORT_AUTHORIZATION
/* check if current user is allowed to read */
if (OpcUa_Method_GetExecutable(pMethodNode) == OpcUa_False ||
UaServer_UserMgt_IsExecutable(OpcUa_BaseNode_GetINode(pMethodNode), a_pCallContext->pSession->UserIdentityData) == OpcUa_False ||
UaServer_UserMgt_IsExecutable(OpcUa_BaseNode_GetINode(pObjectNode), a_pCallContext->pSession->UserIdentityData) == OpcUa_False)
{
pResponse->Results[i].StatusCode = OpcUa_BadUserAccessDenied;
continue;
}
#else
if (OpcUa_Method_GetExecutable(pMethodNode) == OpcUa_False ||
OpcUa_Method_GetUserExecutable(pMethodNode) == OpcUa_False)
{
pMethodResult->StatusCode = OpcUa_BadUserAccessDenied;
continue;
}
#endif