# Users can request to post in locked categories if they meet the spam threshold

**URL:** <https://meta.discourse.org/t/users-can-request-to-post-in-locked-categories-if-they-meet-the-spam-threshold/101178>\
**Category:** Bug\
**Created:** [2 november 2018 om 23:01 UTC](https://meta.discourse.org/t/users-can-request-to-post-in-locked-categories-if-they-meet-the-spam-threshold/101178 "2018-11-02T23:01:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [5 november 2018 om 00:26 UTC](https://meta.discourse.org/t/users-can-request-to-post-in-locked-categories-if-they-meet-the-spam-threshold/101178/3 "2018-11-05T00:26:07Z")

</div>

Agree, the permission check should happen for new topics.

We have this logic here:

> <https://github.com/discourse/discourse/blob/48501b0d45f3144fc7063e16f508e29b22ef6ee0/lib/new_post_manager.rb#L113-L122>

But it only checks permission to post in a topic. For new topics we should also check permission to post in a category.

@vinothkannans can you add a permission check there and a test?

---

_[View the full topic](https://meta.discourse.org/t/users-can-request-to-post-in-locked-categories-if-they-meet-the-spam-threshold/101178)._
