api-platform / api-platform/core

Multiple Security Options

Đang mở
#8,007 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
2.6k
Fork
980
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
49

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.