hackclub / hackclub/auth

Refactor duplicated admin? helper

Open
#185 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.