From afa5367a30f01755995a0c08b5d87ed5dff7103f Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Fri, 29 Dec 2017 01:59:55 +0100 Subject: [PATCH] Fix le can_view de Machine. --- machines/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/machines/models.py b/machines/models.py index 37d0cd73..90954128 100644 --- a/machines/models.py +++ b/machines/models.py @@ -123,6 +123,7 @@ class Machine(models.Model): if not user_request.has_perms(('cableur',)) and self.user != user_request: return False, u"Vous n'avez pas droit de voir les machines autre\ que les vĂ´tres" + return True, None def __str__(self): return str(self.user) + ' - ' + str(self.id) + ' - ' + str(self.name)