Action – getPermissions - erdomke/Innovator.Client GitHub Wiki
Get whether the current user has certain permissions
<!-- SOAP_ACTION = GetPermissionsForClient or ApplyItem -->
<AML>
<Item access_type="{Permission to check for
(e.g. 'can_add', 'can_update', 'can_get', 'can_delete', etc.)}"
action="getPermissions"
id="{ID of the item to check}"
type="{Type of the item to check}" />
</AML>- The value returned is a simple
0or1indicating if the user has the permission. - In order to check for the
can_addpermission, the ID and type must refer to an ItemType item. - A pipe-delimited list can be specified (e.g.
can_update|can_delete). In this case, a value of1indicates that all of the permissions are available. Else, a value of0is returned.
<AML>
<Item access_type="can_get"
action="getPermissions"
id="904737F51C7644B8B64C167B08B36BB5"
type="Grid"></Item>
</AML><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<ApplyItemResponse>
<Result>1</Result>
</ApplyItemResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>