projectblacklight / blacklight-access_controls

Provides access controls for Blacklight-based Rails applications.
2 stars 3 forks source link

Instead of requiring current_ability, look in the scope #14

Closed jcoyne closed 8 years ago

jcoyne commented 8 years ago
     RuntimeError:
       current_ability has not been set on #<Sufia::MySharesSearchBuilder:0x007f98e1ec1928>
     # /Users/jcoyne/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/blacklight-access_controls-0.3.0/lib/blacklight/access_controls/enforcement.rb:24:in `current_ability'

We ought to just expect the scope to respond to current_ability.