api-platform / api-platform/core

Multiple Security Options

オープン
#8,007 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
2.6k
フォーク
980
平均マージ
2日 4時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。