Blocking users - UIKonf/cfp GitHub Wiki

If a user violates the code of conduct, you can block them.

When a user is blocked:

  • They are logged out.
  • They can't log in to the application anymore.
  • Their comments are replaced by a message explaining that a moderator removed them.
  • Their published proposal is replaced by a message explaining that a moderator removed it.

Block user

Start a console:

heroku run rails console

Block the user:

User.find_by(public_name: '<public_name>').block!('<reason>')

Unblock user

Start a console:

heroku run rails console

Unblock the user:

User.find_by(public_name: '<public_name>').unblock!

List all blocked users

Start a console:

heroku run rails console

List blocked users:

Users.all.where(blocked: true)
⚠️ **GitHub.com Fallback** ⚠️