29th / personnel-v3

Personnel management system version 3
https://www.29th.org
2 stars 6 forks source link

Fix verify_authorized callback #236

Open wilson29thid opened 6 months ago

wilson29thid commented 6 months ago

I implemented pundit's built-in :verify_authorized callback incorrectly, and it's not been running. I used a lambda for the unless conditional, and I should have just used a symbol. Not sure why, but fixing it breaks a lot of tests. Not a big impact since we don't have a lot of user-facing controllers anyway, but one to tidy up.