# コントローラーか制約か--権限を強制する最良の方法？

**URL:** <https://meta.discourse.org/t/best-way-to-enforce-permissions-controller-or-constraint/176113>\
**Category:** Development\
**Created:** [2021 年 1 月 14 日午後 5:02 UTC](https://meta.discourse.org/t/best-way-to-enforce-permissions-controller-or-constraint/176113 "2021-01-14T17:02:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2021 年 1 月 16 日午後 1:39 UTC](https://meta.discourse.org/t/best-way-to-enforce-permissions-controller-or-constraint/176113/3 "2021-01-16T13:39:59Z")

</div>

パーミッションはコントローラーか制約側で適用する必要があると思います。モデル側は、誰が呼び出しているのかを把握していないはずです。

この件についてご検討いただき、誠にありがとうございます。

---

_[View the full topic](https://meta.discourse.org/t/best-way-to-enforce-permissions-controller-or-constraint/176113)._
