- You can export a user's data here. Currently we only support exporting a user's posts and comments.
-
-
- You have the option of exporting to your admin account to send to the user, or exporting to the user directly.
-
-
- Exporting the data to your admin account will send it to your contact
- admin email (<%= ForemInstance.contact_email %>),
- and exporting to the user will send it to their email (<%= @user.email %>).
-
-
- <%= button_to "Export to Admin", export_data_admin_user_path(@user.id), data: { confirm: "Are you sure you want to export this user's content to the ADMIN?" }, class: "crayons-btn", params: { send_to_admin: true }, style: "margin-right: 8px;" %>
- <%= button_to "Export to User", export_data_admin_user_path(@user.id), data: { confirm: "Are you sure you want to export this user's content to the USER?" }, class: "crayons-btn", params: { send_to_admin: false } %>
-
- User Status
- <% if @user.suspended? %>
- 🚨 Member is Suspended 🚨
- <% elsif @user.warned? %>
- Member is Warned
- <% elsif @user.comment_suspended? %>
- Member is Comment Suspended
- <% elsif @user.trusted? %>
- Member is Trusted
- <% else %>
- Member is in Good Standing
- <% end %>
-
Removing a social account identity can solve certain sign in issues, for example:
-
-
- They created an account on <%= community_name %>, but deleted their original social account and recreated it with the same Twitter/GitHub username.
- This will be true if their Twitter/GitHub account's UID does not match their identity's UID. You can use the following third party tools to check:
-
Click one of the links to check their social account's UID.
-
Confirm whether or not it matches with the identity's UID.
-
If it doesn't match, delete the respective identity.
-
Ask the user to reauthorize their social account via <%= app_url(user_settings_path(:account)) %>
-
-
- <% @user.identities.each do |identity| %>
- <%= form_for(@user, url: remove_identity_admin_user_path(@user), html: { method: :delete, onsubmit: "return confirm('Are you sure? This should only be done as a solution for the listed example(s).)" }) do |f| %>
- <%= f.hidden_field :identity_id, value: identity.id %>
-
- <%= f.submit "Delete #{identity.provider.capitalize} Identity", class: "btn btn-danger" %>
- <% end %>
- <% end %>
-
-
-
-
-
-
-
Semi-Destructive Actions
-
-
-
-
Unpublish all posts
-
This will make all links of the user's posts unreachable. If the user is not suspended, they can still re-publish their posts.
- <%= form_for(@user, url: unpublish_all_articles_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? All posts will be unavailable to the community.')" }) do |f| %>
-
- <% end %>
-
-
-
-
-
-
Destructive Actions
-
-
-
-
-
-
Merge User
-
To merge a duplicate account, make sure you are currently on the page of the user you want to KEEP. Below, add the user id of the account to merge information from, and delete.
- <%= form_for(@user, url: merge_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This is extremely destructive and irreversible. Merging will delete all the other users content and combine it with this user')" }) do |f| %>
- <%= f.label "User to be deleted:" %>
- <%= f.text_field :merge_user_id, placeholder: "#ID" %>
- <%= f.submit "Merge Users", class: "btn btn-danger" %>
- <% end %>
-
- This is extremely destructive. Banishing will delete all the user's existing content and change their username to @spam_###.
-
-
Do not do this lightly.
- <%= form_for(@user, url: banish_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This is extremely destructive and irreversible. Banishing will delete all articles and turn their username into @spam_###')" }) do %>
-
- <% end %>
- <% elsif current_user.super_admin? || current_user.support_admin? %>
-
This is not a new user. You are only allowed to take this action because you are a
- super admin or a support admin.
-
- This is extremely destructive. Banishing will delete all the user's existing content and change their username to @spam_###.
-
-
Do not do this lightly.
- <%= form_for(@user, url: banish_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This is extremely destructive and irreversible. Banishing will delete all articles and turn their username into @spam_###')" }) do %>
-
- <% end %>
- <% else %>
-
This is not a new user. Only super admins or support admins are allowed to banish this user.
- <% end %>
-
-
- <% if current_user.super_admin? %>
-
-
Fully Delete User
-
This will
- completely destroy the user and all of their activity from our database. This action is irreversible.
-
-
Do not do this lightly.
- <%= form_for(@user, url: full_delete_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This is extremely destructive and irreversible.')" }) do |f| %>
-
- <% end %>
-