chaps-io / access-granted

Multi-role and whitelist based authorization gem for Rails (and not only Rails!)
MIT License
774 stars 41 forks source link

Always use block conditions if present #39

Closed agferrier closed 7 years ago

agferrier commented 7 years ago

Modify permission.rb to always use block permissions if available, else hash conditions if not empty else grant permission

Reorganise tests to align with and test modified functionality.

pokonski commented 7 years ago

Awesome, thanks for that Andrew :+1: I will release it as 1.2 later today, Have to update the changelog and document that breaking change.