{ "$schema": "../TcHmiFramework/Schema/FunctionDescription.Schema.json", "apiVersion": 1, "version": { "full": "14.3.340.0", "major": 14, "minor": 3, "build": 340, "revision": 0 }, "dependencyFiles": [ { "name": "CheckAccess.js", "type": "JavaScript", "description": "" } ], "function": { "name": "CheckAccess", "namespace": "TcHmi.Functions.Beckhoff", "displayName": "CheckAccess", "description": "Checks if a right is allowed for the current user on a control or its parents.", "category": "UserManagement", "returnValue": { "type": "tchmi:general#/definitions/Boolean", "description": "Result of the Access." }, "arguments": [ { "name": "control", "displayName": "Control", "type": "tchmi:framework#/definitions/Control", "description": "Control to check the AccessRight on it.", "required": true, "bindable": false, "restParameter": false }, { "name": "AccessRightToCheck", "displayName": "AccessRightToCheck", "type": "tchmi:framework#/definitions/ControlAccessRightName", "description": "Name of an AccessRight to check.", "required": true, "bindable": true, "restParameter": false } ] } }