8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 20:03:11 +00:00

Merge branch 'search_user' into 'dev'

Permet la recherche avec telephone et email des users

See merge request federez/re2o!287
This commit is contained in:
klafyvel 2018-09-02 20:29:29 +02:00
commit 712df09f2d

View file

@ -140,7 +140,9 @@ def search_single_word(word, filters, user,
) | Q(
room__name__icontains=word
) | Q(
room__name__icontains=word
email__icontains=word
) | Q(
telephone__icontains=word
)
) & Q(state__in=user_state)
if not User.can_view_all(user)[0]: