Se ho capito la tua intenzione guardando la repository di GitHub, perché non usare semplicemente DISCOURSE_DEVELOPER_EMAIL e poi, quando un utente viene creato con quell’indirizzo email, diventa automaticamente un amministratore.
pfaffman
(Jay Pfaffman)
2
Argomenti correlati
| Argomento | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
| Bulk creating users with rails etc | 10 | 1029 | Ottobre 14, 2023 | |
| SOLVED: Unable to Grant Admin or Grant Moderator to existing users | 2 | 3796 | Gennaio 17, 2015 | |
| Created a user from command line. Supposedly active, but isn't? | 1 | 126 | Gennaio 31, 2026 | |
| What is the Rails command to create an admin user in Discourse? | 9 | 2374 | Aprile 10, 2020 | |
| Rake task for merging users | 61 | 14980 | Agosto 12, 2022 |