Items access rights check

To check current user access rights on items, use the command core/check_items_billing:

svc=core/check_items_billing&params={"items":[<long>],
				     "access":<text>,
				     "serviceName":<text>}

While processing a request, available services and access rights on items are checked. For example, a user has a right to create POIs in some resource, however, according to service's cost table, the limit of allowed POIs has been reached, so this resource will not be present in the result array.

Parameters

Name Description
items array of item IDs
access access flags: none (deny), view (view), execute commands (exec_cmd), edit (edit), manage (manage)
serviceName service name (see Detailed information about account)

Response

[
	<long>		/* array of items that the user can access */
]

Errors

Code Value
1 invalid session
2 invalid service name
3 invalid result
4 invalid format or value of parameters
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2021 Gurtam