api-platform / api-platform/core

Multiple Security Options

未关闭
#8,007 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。