api-platform / api-platform/core

Multiple Security Options

Aperta
#8,007 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
2.6k
Fork
980
Merge medio
2g 4h
PR unite (30g)
49

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.