当フォーラムは当組織の有料会員向けであるため、スパムは問題になっていません。しかし、50 人のユーザーを超えるとデフォルトの信頼レベルが自動的に切り替わる仕様のため、現在、信頼レベル 0 のユーザーが数名存在しています。
信頼レベル 0 のユーザーを検索し、彼らを信頼レベル 1 に昇格させる方法はありませんか?信頼レベル 1 のユーザーも信頼レベル 0 グループに表示されているため、結局全員がそのグループに含まれているようです。よろしくお願いいたします!![]()
当フォーラムは当組織の有料会員向けであるため、スパムは問題になっていません。しかし、50 人のユーザーを超えるとデフォルトの信頼レベルが自動的に切り替わる仕様のため、現在、信頼レベル 0 のユーザーが数名存在しています。
信頼レベル 0 のユーザーを検索し、彼らを信頼レベル 1 に昇格させる方法はありませんか?信頼レベル 1 のユーザーも信頼レベル 0 グループに表示されているため、結局全員がそのグループに含まれているようです。よろしくお願いいたします!![]()
How many users are we talking about? You can see users who have only Trust Level 1 from the admin report /admin/users/list/newuser. This does not include users with TL1 or higher. From here you can manually up the user’s trust levels. You are correct that all users on the site technically have TL0, even if they also have a greater trust level. If a lot, a rails command is your best bet.
You should also make sure to change the site setting default trust level if you want all users to have TL1.
Thanks! We only had about 7 users at level 0, so it was easy to upgrade them manually. We’ve also set our default trust level to 1, and may even bump it to 2 if users are running into posting limits. I’ll look into the rails commands if we go that route.
@jomaxro For future reference, is there a known way to do this via the command line, or would I have to construct a custom command? Thanks!
Sure! @pfaffman shared some commands in Migrated to Discourse and system is creating hundreds of flagged posts. Backup is always recommended when running potentially destructive commands. Just modify the User.where( command to suit your needs, the rest should be good to go.
こんにちは、
いくつかのレベル1のユーザーに対して users.update_all(trust_level: 2) を実行しました。現在、これらのユーザーはレベル2になっています:
わかりました。
信頼レベルグループのメンバーシップを調整する Sidekiq タスクは EnsureDbConsistency です。
コマンドラインからユーザーの信頼レベルを更新した後(信頼レベルが上昇または低下した場合)、EnsureDbConsistency がユーザーをこれらのグループに追加または削除します。