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.
Start a console:
heroku run rails consoleBlock the user:
User.find_by(public_name: '<public_name>').block!('<reason>')Start a console:
heroku run rails consoleUnblock the user:
User.find_by(public_name: '<public_name>').unblock!Start a console:
heroku run rails consoleList blocked users:
Users.all.where(blocked: true)