Skip to content

Role refactor: fix KuzzleProfile format #91

@ballinette

Description

@ballinette

After changes introduced into kuzzle by role refactoring (cf. kuzzleio/kuzzle#232), we need to change the format of KuzzleProfile object in the SDK.

Profile definition are unitl now in following format:

var profileDefinition = {
  roles: [
    'myrole', 'default'
  ]
};

We should change it to following format:

var profileDefinition = {
  roles: [
    {_id: 'myrole' },
    {_id: 'default', restrictedTo: [ {index: 'index1’, collections: ['foo’, 'bar’]}, {index: 'index2’} ] }
  ]
};

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions