Eén beheerder kan een andere beheerder niet intrekken

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!

1 like

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.

5 likes

I have removed myself from DISCOURSE_DEVELOPER_EMAILS, then the UI did not provide “Revoke admin” for myself. I find this problematic that an admin cannot step down.

So I went to the console and ran in the rails console:

u = User.find(1)
u.admin = false
u.save

Is this correct?

I found that I could still post in the Staff category. So I added:

u.revoke_admin!

And now I’m a normal user. :partying_face:

1 like

Ja, het is niet mogelijk om jezelf te degraderen. Je zou het ofwel vanuit de console moeten doen, ofwel een van de andere sitebeheerders moeten vragen om het via de normale gebruikersinterface te doen.

Zolang je niet meer in de DISCOURSE_DEVELOPER_EMAILS staat, zou je niet opnieuw gepromoveerd moeten worden wanneer je uitlogt/inlogt.

1 like