Sì. Non riesco a capire come ottenere l’utente corrente. Penso che la tua soluzione lo aggiunga solo se l’utente (ma non quello corrente) è un amministratore.
pfaffman
(Jay Pfaffman)
3
Argomenti correlati
| Argomento | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
| Adding to user serializer does not work for the current user object | 4 | 162 | Agosto 2, 2024 | |
| What is this code add_to_serializer in all these plugins | 25 | 4371 | Aprile 3, 2023 | |
| Custom plugin: cannot add to serializer | 1 | 651 | Marzo 17, 2021 | |
| Changes to the user card data source | 3 | 1725 | Aprile 17, 2020 | |
| How to add user data to the post serializer? | 1 | 710 | Marzo 6, 2020 |