SDK Dart v1.x

# getProfileRights

Gets the detailed rights configured by a security profile

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

Property Type Description
Profile identifier

# Return

A List of objects. Each object is a security right described by the security profile:

  • controller: impacted controller
  • action: impacted controller action
  • index: index name
  • collection: collection name
  • value: tells 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'myProfile');
[ { controller: 'auth',
    action: 'login',
    index: '*',
    collection: '*',
    value: 'allowed'
  { controller: 'document',
    action: 'get',
    index: 'someIndex',
    collection: '*',
    value: 'allowed'
  } [..]