api-platform / api-platform/core
Multiple Security Options
未關閉
- 主要語言
- PHP
- 星號
- 2.6k
- 分支
- 980
- 平均合併
- 2 天 4 小時
- 30 天內合併 PR
- 49
描述
**API Platform version(s) affected**: 2.5.6
**Description**
We need to use multiple "Custom Permission Checks Using Voters" with their specific error messages. Say we want to use voters to check "active users" and "subscribed users", providing corresponding error messages to let the clients know what was the problem.
**How to reproduce**
Try to use more than one "security / security_post_denormalize" and "security_message" for an opreation.
**Possible Solution**
Change "security / security_post_denormalize" and "security_message" keys to somthing which accepts array.
貢獻指南
評估
這個 Issue 還沒有評估資料。