Merge remote-tracking branch 'origin/bug/create-default-groups-if-not-already' into feature/level-file-upload
This commit is contained in:
@@ -224,6 +224,17 @@ class BatchUsers:
|
|||||||
participants.append(user_id)
|
participants.append(user_id)
|
||||||
group.reference.update({'participants': participants})
|
group.reference.update({'participants': participants})
|
||||||
|
|
||||||
|
else:
|
||||||
|
group = {
|
||||||
|
'admin': corporate_user.id,
|
||||||
|
'id': str(uuid.uuid4()),
|
||||||
|
'name': group_type,
|
||||||
|
'participants': [user_id],
|
||||||
|
'disableEditing': True,
|
||||||
|
}
|
||||||
|
|
||||||
|
self._db.collection('groups').document(group['id']).set(group)
|
||||||
|
|
||||||
def _assign_user_to_group_by_name(self, user: UserDTO, maker_id: str):
|
def _assign_user_to_group_by_name(self, user: UserDTO, maker_id: str):
|
||||||
user_id = str(user.id)
|
user_id = str(user.id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user