hackclub / hackclub/auth

Consolidate auth patterns in developer apps show view

Open
#187 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 developer apps show view uses two different authorization mechanisms side by side:

- `admin?` (controller helper) for display logic like showing the owner name and linking collaborator emails to backend
- `policy(@app).manage_collaborators?` (Pundit policy) for the collaborators section

These are conceptually similar checks but use different patterns. Should pick one approach — ideally Pundit policies throughout — so authorization is consistent and testable in one place.

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.