Skip to content

Refactor duplicated admin? helper #185

@24c02

Description

@24c02

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions