Skip to content

feat: Add utility script to promote users to administrator role#64

Open
jmaddington wants to merge 1 commit intoarchive/20250409/jm-productionfrom
feat/promote-admin-script
Open

feat: Add utility script to promote users to administrator role#64
jmaddington wants to merge 1 commit intoarchive/20250409/jm-productionfrom
feat/promote-admin-script

Conversation

@jmaddington
Copy link
Owner

No description provided.

This script provides a simple command-line utility to promote existing users
to administrator status by updating their role field in the database.

- Added promote-admin.js script in the config directory
- Added corresponding npm script entry in package.json
- Script accepts email as a command-line argument or prompts for it
- Provides confirmation before making changes
- Follows the same pattern as other admin scripts

Usage: npm run promote-admin <email>
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

Comments