checkRights method
Checks if an API action can be executed by the current user.
Implementation
Future<bool> checkRights(
String kuid, Map<String, dynamic> requestPayload) async {
final response = await kuzzle.query(KuzzleRequest(
controller: name,
action: 'checkRights',
userId: kuid,
body: requestPayload,
));
return response.result['allowed'] as bool;
}