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
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
DISCOURSE_DEVELOPER_EMAILS から自分自身を削除したところ、UIで自分自身の「管理者権限の剥奪」オプションが表示されなくなりました。管理者が管理者権限を降りることができないのは問題だと思います。
そのため、コンソールに移動し、Railsコンソールで以下を実行しました:
u = User.find(1)
u.admin = false
u.save
これは正しいですか?
「いいね!」 1
はい、自分で降格することはできません。コンソールから行うか、他のサイト管理者にお願いして通常通りUI経由で行う必要があります。 DISCOURSE_DEVELOPER_EMAILS にもう含まれていない限り、ログアウト/ログイン時に再昇格されることはないはずです。
「いいね!」 1