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

Simplify target #17

Closed
franciscogouveia opened this issue Jan 27, 2016 · 4 comments
Closed

Simplify target #17

franciscogouveia opened this issue Jan 27, 2016 · 4 comments
Milestone

Comments

@franciscogouveia
Copy link
Owner

Instead of

target: ['all-of',
  {
    type: 'username',
    value: 'fgouveia'
  },
  {
    type: 'group',
    value: 'writer'
  }
]

Do something like this for an AND condition

target: {
  username: 'fgouveia',
  group: 'writer'
}

Use an array for a combination of AND and OR condition

target: [
  {
    username: 'fgouveia',
    group: 'writer'
  },
  {
    username: 'anonymous',
    group: 'reader'
  }
]
@gitawego
Copy link

very good idea, hope this will be done soon :)

@franciscogouveia
Copy link
Owner Author

Coming soon ;)

franciscogouveia/rbac-core#12

@franciscogouveia
Copy link
Owner Author

Done!

@gitawego
Copy link

it's getting better and better. simple and powerful :)
thanks a lot

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

No branches or pull requests

2 participants