How to hide admins from /about page

Since we often have to be admin to diagnose issues or change settings on our customer’s Discourse, we decided to hide all our @discourse.org accounts from the admins lists. That way, we’re not polluting our customer’s admins lists.

We do this using a plugin that is automatically installed to all the Discourse we host and does something like

after_initialize do

  add_to_serializer(:about, :admins) do
    object.admins.reject { |u| u.email =~ /@discourse\.org/i }
  end

end
7 Likes