Commit 5c3cf78b authored by Maël Kervella's avatar Maël Kervella

Fix : mauvais filtre quand on pas le droit cableur

parent 9dc89c3a
......@@ -123,7 +123,7 @@ def get_results(query, request, filters={}):
interface__domain__related_domain__name__icontains = query
if not request.user.has_perms(('cableur',)):
filter_machine_list &= Q(
filter_machine_list &= Q(
results['machines_list'] = Machine.objects.filter(filter_machine_list)
results['machines_list'] = SortTable.sort(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment