Discourse Meta
권한을 강제하는 가장 좋은 방법은 무엇인가요? 컨트롤러인지 제약 조건인지?
개발
pfaffman
(Jay Pfaffman)
1월 16, 2021, 1:39오후
3
권한은 컨트롤러나 제약 조건에서 강제되어야 한다고 생각합니다. 모델은 누가 자신을 호출하는지 알 수 없다고 보거든요.
이 문제에 대해 생각해 주셔서 정말 감사합니다.
show post in topic
Related topics
글
댓글
조회수
활동
Proper place to propose a permissions predicate?
Development
1
137
2월 21, 2025
Guardian before and after checks api
Development
4
344
7월 29, 2024
More detailed response for API /post_actions failures
Development
4
1215
4월 25, 2017
How to add route to root path
Development
3
540
4월 8, 2021
Allow specifiy user different from guardian.user in chat services such as Chat::CreateMessage
Feature
chat
3
693
12월 4, 2023