samvera / hydra-head

Samvera Repository Rails Engine
Other
98 stars 41 forks source link

enforce_show_permissions no longer works. #278

Open tpendragon opened 9 years ago

tpendragon commented 9 years ago

The access controls mixin moved to the search builder, and if you include it in the controller the method doesn't work. Specs didn't catch it because they're all stubbed out and verifying doubles must be turned off.

jcoyne commented 9 years ago

This is working fine for us. Are you using noids? If so, you may need a before filter that sets params[:id] = #repository id# before calling enforce_show_permissions