ajout permssion de voir les prix

This commit is contained in:
2025-06-01 15:25:54 +02:00
parent 9a9c932262
commit acab16e101
2 changed files with 56 additions and 47 deletions

View File

@ -25,7 +25,8 @@ class EventProvider with ChangeNotifier {
} else {
eventsSnapshot = await _firestore
.collection('events')
.where('workforce', arrayContains: userId)
.where('workforce',
arrayContains: _firestore.collection('users').doc(userId))
.get();
}