# Email-in topics not under approvals control

**URL:** <https://meta.discourse.org/t/email-in-topics-not-under-approvals-control/72057>\
**Category:** Bug\
**Created:** [Outubro 14, 2017, 7:33am UTC](https://meta.discourse.org/t/email-in-topics-not-under-approvals-control/72057 "2017-10-14T07:33:16Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)\
**Post date:** [Outubro 14, 2017, 10:07am UTC](https://meta.discourse.org/t/email-in-topics-not-under-approvals-control/72057/13 "2017-10-14T10:07:03Z")

</div>

Turns out that you have it in there afterall. This is what’s throwing it off:

> <https://github.com/discourse/discourse/blob/main/lib/new_post_manager.rb#L70-L72>

You are _exempting_ staff and `staged` users from the approval process:

> <https://github.com/discourse/discourse/blob/main/lib/new_post_manager.rb#L77>

However, you’ve forgotten that there are different types of staged users creating topics. You want to exempt the ones that are sending in private messages (i.e. posting to group), but **NOT** when they are sending in topics (i.e. posting to category).

I think the line should be changed to:

```plaintext
def self.exempt_user?(user, options)
  user.staff? || (user.staged && options[:archetype] == Archetype.private_message)
end

```

---

_[View the full topic](https://meta.discourse.org/t/email-in-topics-not-under-approvals-control/72057)._
