SDK Dart v2.x

getUserRights #

Gets the detailed rights granted to a user.

Copied to clipboard!
Future<List<dynamic>> getUserRights(String id)

Property Type Description
User id

Return #

A List of objects. Each object is a security right granted or denied to the user:

  • controller: impacted controller
  • action: impacted controller action
  • index: index name
  • collection: collection name
  • value: tell if access if allowed or denied. If closures have been configured on the detailed scope, the value is conditional.

Usage #

Copied to clipboard!
final result = await'john.doe');
[ { controller: '*',
  action: '*',
  index: '*',
  collection: '*',
  value: 'allowed' } ]