getProfileRights method

Future<List> getProfileRights(
  1. String id
)

Gets the detailed rights configured by a security profile.

Implementation

Future<List<dynamic>> getProfileRights(String id) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'getProfileRights',
    uid: id,
  ));

  return response.result['hits'] as List<dynamic>;
}