# More detailed response for API /post\_actions failures

**URL:** <https://meta.discourse.org/t/more-detailed-response-for-api-post-actions-failures/61536>\
**Category:** Development\
**Created:** [2017 年 4 月 25 日午前 12:44 UTC](https://meta.discourse.org/t/more-detailed-response-for-api-post-actions-failures/61536 "2017-04-25T00:44:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![kennym](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kennym/32/115557_2.png) [@kennym](https://meta.discourse.org/u/kennym)\
**Post date:** [2017 年 4 月 25 日午後 5:45 UTC](https://meta.discourse.org/t/more-detailed-response-for-api-post-actions-failures/61536/4 "2017-04-25T17:45:20Z")

</div>

Is there a compelling reason of why the validation of the [PostGuardian#post\_can\_act?](https://github.com/discourse/discourse/blob/5d9d2cf2871ce127c207f2efa192c2eb2eeb35f2/lib/guardian/post_guardian.rb#L36) isn’t happening within the [PostAction#act](https://github.com/discourse/discourse/blob/5d9d2cf2871ce127c207f2efa192c2eb2eeb35f2/app/models/post_action.rb#L255) class method?

/cc @zogstrip @eviltrout

---

_[View the full topic](https://meta.discourse.org/t/more-detailed-response-for-api-post-actions-failures/61536)._
