timeman.timecontrol.reports.settings.get
The method gets user settings to create an interface for the time control report.
Parameters
No.
Call example
JavaScript
BX24.callMethod('timeman.timecontrol.reports.settings.get', {}, function(result){ if(result.error()) { console.error(result.error().ex); } else { console.log(result.data()); } });
PHP
$result = restCommand('timeman.timecontrol.reports.settings.get', Array(), $_REQUEST["auth"]);
Response example
{ "result": { "active":true, "user_id":2, "user_admin":true, "user_head":true, "departments":[ {"id":"92","name":"Bitrix24 main office"}, {"id":"93","name":"Administration"}, {"id":"106","name":"IT Department"} ], "minimum_idle_for_report":1, "report_view_type":"head" } }
Keys description
- active - availability of time control tool.
- user_id - current user ID.
- user_admin - flag that specifies that you have administrator access permission rights.
- user_head - flag that specifies that you are a supervisor/manager.
- departments - list of available department (available only if you are a supervisor/manager)
- id - department ID
- name - department name
- minimum_idle_for_report - minimum amount of time for requesting a report (minutes)
- report_view_type - level of report specification (head, full, simple)
© «Bitrix24», 2001-2024