29th / personnel-v3

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

Use a policy to determine access to /manage/ #235

Open wilson29thid opened 7 months ago

wilson29thid commented 7 months ago

Instead of putting the logic in User#active_admin_editor?, create a ManagePolicy using Pundit's headless policies approach, just for consistency.