Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions arrays can have duplicates #25

Open
lyntco opened this issue Dec 24, 2015 · 0 comments
Open

Permissions arrays can have duplicates #25

lyntco opened this issue Dec 24, 2015 · 0 comments

Comments

@lyntco
Copy link
Contributor

lyntco commented Dec 24, 2015

Getting stuff like this:

 permissions:
   [ { entity: 'dd36730e-f449-4e24-9854-90905c7757f9',
       type: 'purchaser' },
     { entity: '31ba0784-2e6b-4679-86c1-320802d02fa2',
       type: 'purchase' },
     { entity: '31ba0784-2e6b-4679-86c1-320802d02fa2',
       type: 'purchase' },
     { entity: '31ba0784-2e6b-4679-86c1-320802d02fa2',
       type: 'purchase' },
     { entity: '31ba0784-2e6b-4679-86c1-320802d02fa2',
       type: 'purchase' } ],
  rev: 'fac9c07e-6ee7-4e34-8d3e-4357e24532df',
  updated_at: '2015-12-24T06:13:51.658Z' }

Should be a way to compact the dups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant