I have 2 admin accounts. Here is what I did. I logged in as a 1st admin, revoked the admin rights of the 2nd admin. Status changed to “Admin? No”. Then I logged in with this 2nd account in ‘incognito’ mode. Admin status changed back himself. What may be a reason for this? Thank you!
There is an admin email address in your config file (app.yml)
The setting is called
DISCOURSE_DEVELOPER_EMAILS:
That admin with that specific email address, will always have admin rights even if others try to remove it.
Mi sono rimosso da DISCOURSE_DEVELOPER_EMAILS, poi l’interfaccia utente non ha fornito “Revoca admin” per me stesso. Trovo problematico che un admin non possa rinunciare al suo ruolo.
Quindi sono andato nella console ed eseguito nella console Rails:
u = User.find(1)
u.admin = false
u.save
È corretto?
Sì, non è possibile retrocedere te stesso. Dovresti farlo dalla console o chiedere a uno degli altri amministratori del sito di farlo tramite l’interfaccia utente come al solito.
Finché non sei più in DISCOURSE_DEVELOPER_EMAILS, non dovresti essere ripromosso quando ti disconnetti/accedi.