Refactor duplicated admin? helper
Open
- Dominant language
- Ruby
- Stars
- 80
- Forks
- 66
- Avg merge
- 2d 59m
- Merged PRs (30d)
- 6
Description
The `admin?` helper (checks if current user is a program manager or super admin) is defined in three places:
- `app/controllers/developer_apps_controller.rb:143`
- `app/policies/program_policy.rb:97` (inner class)
- `app/policies/program_policy.rb:113`
Should be extracted to a shared concern or helper so it's defined once.
Contributor guide
Assessment
This issue has not been assessed yet.