Skip to content

Add Avo super-admin dashboard for managing users#87

Merged
kcdragon merged 1 commit into
mainfrom
super-admin-avo-dashboard
Jul 5, 2026
Merged

Add Avo super-admin dashboard for managing users#87
kcdragon merged 1 commit into
mainfrom
super-admin-avo-dashboard

Conversation

@kcdragon

@kcdragon kcdragon commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Installs Avo (Community edition) mounted at /avo, gated so only super_admin users can enter, with a User resource whose super_admin boolean is editable — giving super admins a dashboard to promote other users. Access is resolved by resuming the session from the signed cookie (extracted into Session.find_by_cookie, now shared with the Authentication concern), and non-super-admins are redirected to the home page. Adds integration tests covering the access gate and the promote-user flow.

Bootstrap the first super admin from the console: User.find_by!(email_address: "you@example.com").update!(super_admin: true).

🤖 Generated with Claude Code

Install Avo (Community edition) mounted at /avo, gated so only
super_admins can enter. Add a User resource whose `super_admin`
boolean is editable, letting a super admin promote another user.

Auth is resolved by resuming the session from the signed cookie
(extracted into Session.find_by_cookie, shared with the
Authentication concern); non-super-admins are redirected to root.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kcdragon kcdragon merged commit 971a501 into main Jul 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant