Discourse Meta
コントローラーか制約か--権限を強制する最良の方法?
開発
pfaffman
(Jay Pfaffman)
2021 年 1 月 16 日午後 1:39
3
パーミッションはコントローラーか制約側で適用する必要があると思います。モデル側は、誰が呼び出しているのかを把握していないはずです。
この件についてご検討いただき、誠にありがとうございます。
トピックに投稿を表示
関連トピック
トピック
返信
表示
アクティビティ
Proper place to propose a permissions predicate?
Development
1
137
2025 年 2 月 21 日
Guardian before and after checks api
Development
4
344
2024 年 7 月 29 日
More detailed response for API /post_actions failures
Development
4
1215
2017 年 4 月 25 日
How to add route to root path
Development
3
540
2021 年 4 月 8 日
Allow specifiy user different from guardian.user in chat services such as Chat::CreateMessage
Feature
chat
3
693
2023 年 12 月 4 日