Ouais. Je n’arrive pas à comprendre comment obtenir l’utilisateur actuel. Je pense que ce que tu as proposé ajoutera l’utilisateur si c’est un administrateur (mais pas l’utilisateur actuel).
pfaffman
(Jay Pfaffman)
3
Sujets connexes
| Sujet | Réponses | Vues | Activité | |
|---|---|---|---|---|
| Adding to user serializer does not work for the current user object | 4 | 162 | Août 2, 2024 | |
| What is this code add_to_serializer in all these plugins | 25 | 4369 | Avril 3, 2023 | |
| Custom plugin: cannot add to serializer | 1 | 651 | Mars 17, 2021 | |
| Changes to the user card data source | 3 | 1723 | Avril 17, 2020 | |
| How to add user data to the post serializer? | 1 | 710 | Mars 6, 2020 |